<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SaranJoel</title>
    <description>The latest articles on DEV Community by SaranJoel (@saranjoel).</description>
    <link>https://dev.to/saranjoel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F579710%2Fa42861e2-852e-40dc-806a-c4b2e941188c.jpg</url>
      <title>DEV Community: SaranJoel</title>
      <link>https://dev.to/saranjoel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saranjoel"/>
    <language>en</language>
    <item>
      <title>Conditional Statement in Python</title>
      <dc:creator>SaranJoel</dc:creator>
      <pubDate>Fri, 03 Sep 2021 12:40:03 +0000</pubDate>
      <link>https://dev.to/saranjoel/conditional-statement-in-python-13ib</link>
      <guid>https://dev.to/saranjoel/conditional-statement-in-python-13ib</guid>
      <description>&lt;p&gt;So after looking into the Datatypes,we got is&lt;br&gt;
 Conditional statement.&lt;br&gt;
What are Conditional Statements in Python?and why do we need them?&lt;br&gt;
The reasons are:&lt;br&gt;
Conditional Statement in Python perform different computations or actions depending on whether a specific Boolean constraint evaluates to true or false. Conditional statements are handled by IF statements in Python.&lt;br&gt;
Decision making is required when we want to execute a code only if a certain condition is satisfied.&lt;br&gt;
The if…elif…else statement is used in Python for decision making.&lt;br&gt;
so we have different decision making statement they are&lt;br&gt;
1.if&lt;br&gt;
2.if-else&lt;br&gt;
3.elif&lt;br&gt;
4.Nested &lt;/p&gt;
&lt;h1&gt;
  
  
  1.if
&lt;/h1&gt;
&lt;h3&gt;
  
  
  if Statement Syntax
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
   &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If the given condition is true,the code will be executed&lt;br&gt;
if it is false the process will end.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NrQj3eFf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h05u5bw1fmtiv98tfkhh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NrQj3eFf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h05u5bw1fmtiv98tfkhh.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"you are under age"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how we use the if statement&lt;/p&gt;

&lt;h1&gt;
  
  
  2.if else
&lt;/h1&gt;

&lt;p&gt;This is the extention for the if statement.So that even if the&lt;br&gt;
the 'if' condition becomes false we need to perform another code in that cases we use this if-else statements.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WpgH0RzK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oknbvpfydz1n26ezghws.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WpgH0RzK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oknbvpfydz1n26ezghws.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here if the condition in the 'if' becomes true,then it executes code(1)&lt;br&gt;
if the 'if' condition is false then the code(2) is executed&lt;br&gt;
here Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"you are under age"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"you are an youngster"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;so next in the table we have&lt;/p&gt;

&lt;h1&gt;
  
  
  3.elif
&lt;/h1&gt;

&lt;p&gt;elif is a shortcut of else if condition statements. In Python one or more conditions are used in the elif statement.the flow :&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_s5xE-Wz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gn85pd425h63w87537rq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_s5xE-Wz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gn85pd425h63w87537rq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
the syntax for the elif is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;condition0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;condition1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;condition2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this is the syntax of the elif&lt;br&gt;
as we see if the condition in the 'if' : false&lt;br&gt;
the next condition is checked which is in elif block, if the conditions true the code will be executed,And so.&lt;br&gt;
so lets see an Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;=-&lt;/span&gt;&lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Positive number"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Zero"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Negative number"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;next&lt;/p&gt;

&lt;h1&gt;
  
  
  4.Nested
&lt;/h1&gt;

&lt;p&gt;The nested is to do the condition checking simultaneously.&lt;br&gt;
we have &lt;br&gt;
1.Nested if&lt;br&gt;
2.Nested if else&lt;/p&gt;
&lt;h3&gt;
  
  
  1.Nested if
&lt;/h3&gt;

&lt;p&gt;A nested if is an if statement that is the target of another if statement. Nested if statements mean an if statement inside another if statement.Yes, Python allows us to nest if statements within if statements. we can place an if statement inside another if statement.&lt;br&gt;
the syntax will be&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;condition1&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
   &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
   &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;condition2&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; 
      &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ej0jTSL4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6oqx91jecdh3cyf05ie.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ej0jTSL4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6oqx91jecdh3cyf05ie.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
an Ex&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1001&lt;/span&gt;  
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
  &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Above 100"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"and also above 1000"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;so the next is &lt;/p&gt;

&lt;h3&gt;
  
  
  2.Nested if else
&lt;/h3&gt;

&lt;p&gt;using one “if else” statement inside other  if else statements it is called nested if else statement.&lt;br&gt;
the syntax for this is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;  
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;  
     &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;  

       &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;  

     &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  

        &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;  


&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  

 &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;  

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;lets see an Ex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1456&lt;/span&gt;  
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
  &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Above 100"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"and also above 1000"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
  &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"and also below 1000"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"below 100"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;so these are the conditional statements in the pyhton&lt;br&gt;
so once again why do we use these conditional statements?&lt;br&gt;
Conditional statements are also called &lt;em&gt;decision-making statements&lt;/em&gt;. We use those statements while we want to execute a block of code when the given condition is true or false.&lt;br&gt;
 well see you in the next post.&lt;br&gt;
print("thank you!").&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>codenewbie</category>
      <category>programming</category>
    </item>
    <item>
      <title>Data Types in python </title>
      <dc:creator>SaranJoel</dc:creator>
      <pubDate>Sun, 29 Aug 2021 14:28:17 +0000</pubDate>
      <link>https://dev.to/saranjoel/data-types-in-python-jkj</link>
      <guid>https://dev.to/saranjoel/data-types-in-python-jkj</guid>
      <description>&lt;p&gt;In my last post we came across the string.&lt;br&gt;
&lt;a href="https://dev.to/saranjoel/print-built-in-function-in-python-5ceb"&gt;Print() built in function in python&lt;/a&gt;&lt;br&gt;
well,i haven't said any thing about,what is string.&lt;br&gt;
So,this is all bout it&lt;br&gt;
The string comes under DataTypes.&lt;br&gt;
what Exactly are DataTypes?&lt;br&gt;
=&amp;gt;DataTypes - are used to classify one particular type of data.&lt;br&gt;
This is important because the specific data type you use will determine what values you can assign to Variable and what you can do to it.&lt;br&gt;
Data types are important in web applications or software or programs in many sense.&lt;br&gt;
Data types gives meaning to data.&lt;br&gt;
So,thats said&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eCenRf-n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkiyd7f62aitaf1k8h3x.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eCenRf-n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkiyd7f62aitaf1k8h3x.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
There are different DataTypes&lt;br&gt;
1.Integer-int&lt;br&gt;
2.String -str&lt;br&gt;
3.Float  -float&lt;br&gt;
4.Boolean-True,False&lt;br&gt;
Indetail&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1.Integer&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This Integer is denoted by keyword:'int'&lt;br&gt;
this is used to define the variable it is an integer.&lt;br&gt;
as we know integers are-0,1,2,3,4.......... and even -ve numbers.&lt;br&gt;
The range of this int is from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision.&lt;br&gt;
The int can be defined as&lt;br&gt;
x=12&lt;br&gt;
here we are using variable x the store the DataType-int&lt;br&gt;
to know the datatype of the variable-x we can use the 'type()' built in function&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--U75xh1r3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/purene9p210f0xs5cw7u.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--U75xh1r3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/purene9p210f0xs5cw7u.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
if we are using a large number we can split by using an Underscore(_),ie.123_456_789&lt;br&gt;
this underscore doesn't change the value of the number,it is taken &lt;br&gt;
as 123456789.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2.String&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;this string is denoted by keyword:'str'&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kmhzVjew--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/87c6vf01cwvu6g1dk2ck.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kmhzVjew--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/87c6vf01cwvu6g1dk2ck.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
This string is group of characters,the characters in the sence a,v,e,r,o,e,y,1,3,54..... what ever the keys that are in keyboard.&lt;br&gt;
But,This string must be denoted in Double Quotations&lt;br&gt;
like :&lt;br&gt;
x="Hola"&lt;br&gt;
x="12345"&lt;br&gt;
x="/'.;p]["&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZcGiEbU2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8h4j7k45x72zpotbonsb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZcGiEbU2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8h4j7k45x72zpotbonsb.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
And we can also check the type by using type() built in function to see what DataType it is,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aKTGPm0z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6w44skbazf8lut605yak.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aKTGPm0z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6w44skbazf8lut605yak.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
if we want to print the str multiple time,we cant just write print() so many time &lt;br&gt;
coz it sucks and wast of time.that dosent make us much of a programmer if  we cant minimize the size and time.&lt;br&gt;
As time and size are very crucial in programming.&lt;br&gt;
So,is there a way to do that ?&lt;br&gt;
yes,there is way we can print multiple times by using \n at the end of the string&lt;br&gt;
it is done like :&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jMvjwtCy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8arrtlx96fa85wn8za7l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jMvjwtCy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8arrtlx96fa85wn8za7l.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
we can add two str we use + sign this is known as String Concatenation&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_pRVmAmW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6twjrx2ucxcnwz6l7j9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_pRVmAmW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6twjrx2ucxcnwz6l7j9.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;f-String&lt;/strong&gt;&lt;br&gt;
Some times in during printing the result we want to specify the result in the string in print().&lt;br&gt;
But,it is not possible to print both string and result(as it might be other DataTypes-int,float,boolean)&lt;br&gt;
so to make that happen we need to use this f-String&lt;br&gt;
we can do it like:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q1vtlMpr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rghshtz5vzwfgtvust7y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q1vtlMpr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rghshtz5vzwfgtvust7y.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
In this string wecan specify the certain character if we need to it canbe done by using[] to specify the index of the character.&lt;br&gt;
like:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0bmXEOTe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5gyla2it104x6241fi7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0bmXEOTe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5gyla2it104x6241fi7.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
so now next to&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3.Float&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;float is denoted by the keyword:float&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PhCcgsys--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aikxeprf6jamzohpux70.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PhCcgsys--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aikxeprf6jamzohpux70.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
To assign the float to the variable by &lt;br&gt;
x=1.23&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--k2YI0M4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vn6djlyatvr9r26r8w9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k2YI0M4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vn6djlyatvr9r26r8w9.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now The Last One&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;4.Boolean&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Booleans represent one of two values: True or False.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CbFW5mWG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhi78kdeuaeto5cn2ybs.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CbFW5mWG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhi78kdeuaeto5cn2ybs.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
this is used as&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qbv23uer--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wz4oji7cowvkormkq8qi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qbv23uer--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wz4oji7cowvkormkq8qi.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If there are any Suggestions Or corrections fell free to say&lt;br&gt;
Print("Thank YOu!")&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>programming</category>
    </item>
    <item>
      <title>Print() built in function in python</title>
      <dc:creator>SaranJoel</dc:creator>
      <pubDate>Sat, 28 Aug 2021 10:49:27 +0000</pubDate>
      <link>https://dev.to/saranjoel/print-built-in-function-in-python-5ceb</link>
      <guid>https://dev.to/saranjoel/print-built-in-function-in-python-5ceb</guid>
      <description>&lt;p&gt;print() is a built in function in python &lt;br&gt;
we use print() function to print the object in it &lt;br&gt;
which is given in double Quotation&lt;br&gt;
which will be like:&lt;br&gt;
Print("object")&lt;br&gt;
or we can do with the old classic word&lt;br&gt;
ie. print("Hello World!")&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yI1aoVom--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fscccytp6vcr6hbtmyzb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yI1aoVom--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fscccytp6vcr6hbtmyzb.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can only print ,if the object is in b/w the in double Quotation.&lt;br&gt;
if the object is not in b/w the double Quotation it would give an error.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KBpbxu2Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jk3d387b3j9zrbxs56l2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KBpbxu2Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jk3d387b3j9zrbxs56l2.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
the error would be syntax error&lt;br&gt;
why is it giving an error?&lt;br&gt;
should it just print the object as it before?&lt;br&gt;
what is the problem in printing with out double Quotation?&lt;/p&gt;

&lt;p&gt;The problem in printing the object is,because the computer think the 'object' is also an 'built in function' and after thinking that it searches in the built in functions,&lt;br&gt;
as the object will not be present in the built in functions ,it will give an error .&lt;br&gt;
So,we have to specify the object in double Quotation.&lt;/p&gt;

</description>
      <category>python</category>
      <category>codenewbie</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
