<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NIKHIL RAJ]]></title><description><![CDATA[In this blog I will share my learnings and document all the challenges I faced and how I solved it.]]></description><link>https://blog.niikhil.in</link><generator>RSS for Node</generator><lastBuildDate>Sat, 30 May 2026 02:13:03 GMT</lastBuildDate><atom:link href="https://blog.niikhil.in/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Part 1 : Python From Scratch]]></title><description><![CDATA[This article explains basic data types and print function. This is good place to start your Python programming journey.
Lets Begin

Data types - Python has many data types, below are some most basic d]]></description><link>https://blog.niikhil.in/part-1-python-from-scratch</link><guid isPermaLink="true">https://blog.niikhil.in/part-1-python-from-scratch</guid><category><![CDATA[Python]]></category><category><![CDATA[python beginner]]></category><category><![CDATA[coding]]></category><category><![CDATA[Beginner Developers]]></category><category><![CDATA[learn coding]]></category><category><![CDATA[learning]]></category><dc:creator><![CDATA[NIKHIL RAJ]]></dc:creator><pubDate>Thu, 05 Feb 2026 03:48:33 GMT</pubDate><content:encoded><![CDATA[<p>This article explains basic data types and print function. This is good place to start your Python programming journey.</p>
<p>Lets Begin</p>
<ol>
<li><strong>Data type</strong>s -<br /> Python has many data types, below are some most basic data types with examples .<br /> We will learn about more data types/structures as we proceed…</li>
</ol>
<pre><code class="language-markdown">## Data Types
1. int -&gt; eg - 1,3,4,etc.
2. float -&gt; eg - 1.02, 2.4, 4.8, etc
3. str -&gt; eg - "Hello", "Anything", 'Hii', '''Something''' , etc.
4. And more...
</code></pre>
<ol>
<li><p><code>print()</code> <strong>function</strong></p>
<p> using <code>print()</code> function we can show output values on screen.</p>
</li>
</ol>
<pre><code class="language-python">print(1)
print(2.5)
print("Hello")
print("Hii","Python",15)
print("Bye","C",sep="&gt;",end=' ')
print("Bye")
</code></pre>
<p>Output :</p>
<pre><code class="language-plaintext">1
2.5
Hello
Hii Python 15
Bye&gt;C Bye
</code></pre>
<ul>
<li><p>As shown above, for printing <code>int</code> or <code>float</code> , we can directly pass it inside print function. But for string we use double quotes - <code>"string"</code> , we can also use single quotes -<code>'string'</code> or three single quotes - <code>'''string'''</code> or three double quotes - <code>"""string"""</code>.</p>
<p>  Syntax of print function is : <code>print(*objects, sep=' ', end='\n')</code></p>
<p>  Let’s break down the syntax -</p>
<ul>
<li><p><code>*objects</code> means we give any number of arguments to <code>print</code> function.</p>
</li>
<li><p><code>sep = ' '</code> as we an give any number of inputs values to the function, <code>sep</code> argument separates each values, by default it is set to single space <code>' '</code>.</p>
</li>
<li><p><code>end = '\n'</code> using the end argument we can set end behavior of <code>print</code> function, by default it is set to <code>'\n'</code> , which is a escape sequence called newline character. This forces print function to switch to newline at the end each execution.</p>
</li>
</ul>
</li>
</ul>
]]></content:encoded></item></channel></rss>