Python tutorial for beginners
Tags: python, programming, tutorial
Published: 2019-09-25 17:32:00

---
title: Python tutorial for beginners
published: true
description: 
tags: #python #programming #tutorial
---

<h2><span style="color: #800000;">What is Python?</span></h2>
Python is a popular programming language. It was created in 1991 by Guido van Rossum.It is one of the most easist programming language nowadays.
Reason for Python popularity is due to the buzzwords - Big Data, Data mining, AI, IOT, Machine Learning etc.

Now, these are the areas where it is easier to work with Python vis-a-vis Java. And these are the areas where Python is used more than Java . Python is being supported by large scientific community and academic institutions who have developed lots of library that makes easier to do jobs with Python.

<a href="https://www.code2master.com/python/python-tutorial-beginners/">Python</a> is a scripted language and is dynamically typed, so it’s usually easier to kick off a small project.
<h2><span style="color: #800000;">Features of Python are</span></h2>
<h3>a. Easy</h3>
Python is very easy to learn and code.It is easier to get started with python due to its simplicity.
<h3>b. Interpreted</h3>
It is easy to test and debug as python is intrepreted language(line by line)
<h3>c. Portable</h3>
You can run Python on Windows, Mac, Linux or any other platform.
<h3>d. Object-Oriented</h3>
It supports classes and objects.
<h3>e. Free and Open Source</h3>
You don't need to buy costly licenses, it is free to use and supported by large number of python communities.
<h3>f. GUI Programming</h3>
You can use python to develop graphical user interface using dia
<h3>g. Large Library</h3>
Python provides you with a large standard library. Many academic institutions and scientific communities has developed large number of libraries which can use to apply for almost all the problems.
<h2><span style="color: #800000;">Frameworks available in Python</span></h2>
<h3>a. Django</h3>
Django is a high-level open source Python Web framework. It takes care of much of the hassle of Web development, so you can focus on writing your app without using boiler plate code.
<h3>b. Tornado</h3>
Tornado is also open-source web framework, written in Python. It is known for its excellent performance and scalability.
<h3>c. Flask</h3>
Like Django, Flask is a web framework written in Python. It is a micro framework because it does not need certain libraries and tools. It also does not have form validation or a database abstraction layer. However, you can make use of extensions to add extra features. Pinterest and linkedin are some of biggest users of flask.
<h3>d. Pyramid</h3>
Pyramid is lightweight web framework. It is used to create web appication in easy way.
<h3>e. Bottle</h3>
Like Flask, it is a micro-framework for Python. It is used for web development. Bottle is known for its speed, simplicity, and light-weight. A single file can run both Python 2.5+ and 3.x
<h3>f. web2py</h3>
Written in Python, web2py is another open source web framework.It follows model view controller architecure(MVC) for web development.
<h3>g. NumPy</h3>
NumPy is an open-source framework for Python. It is used for scientific computing. It supports large multidimensional arrays and matrices, and functions to operate on them.
<h3>h. SciPy</h3>
SciPy is a Python library that you can use for scientific computing. It has modules for linear algebra, interpolation, fast Fourier transform, image processing, and many more. It uses a multidimensional array from the NumPy module.

<strong>Let's create some very simple program to add two numbers</strong>
<pre>
<strong>
a=10
b=20
print(a+b)</strong>
</pre>
<strong>Output:</strong>
<div style="padding: 12px; background-color: #f0f8ff; line-height: 1.4;">30</div>
Here is python tutorial series.

<section class="tuturial-menu-section clearfix">
<h2 id="tutorial" class="autoscroll">Python tutorial</h2>

<hr />

<section>
<h3><span style="color: #800000;">Python basics</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-hello-world/">Python hello world</a></li>
 	<li><a href="https://www.code2master.com/python/python-keywords-identifiers-2/">Python keywords and identifiers</a></li>
 	<li><a href="https://www.code2master.com/python/python-operators/">Python operators</a></li>
 	<li><a href="https://www.code2master.com/python/if-else-statement-python/">Python If else statment</a></li>
 	<li><a href="https://www.code2master.com/python/python-for-loop/">Python for loop</a></li>
 	<li><a href="https://www.code2master.com/python/python-while-loop/">Python while loop</a></li>
 	<li><a href="https://www.code2master.com/python/python-function/">Python function example</a></li>
 	<li><a href="https://www.code2master.com/python/python-print-format/">Python print format</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python data structures</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-string/">Python String</a></li>
 	<li><a href="https://www.code2master.com/python/python-list/">Python list</a></li>
 	<li><a href="https://www.code2master.com/python/python-dictionary/">Python Dictionary</a></li>
 	<li><a href="https://www.code2master.com/python/python-tuple/">Python tuple</a></li>
 	<li><a href="https://www.code2master.com/python/python-set/">Python set</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python List operations</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-list-append/">Python list append</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-extend/">Python list extend</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-clear/">Python list clear</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-sort/">Python list sort</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-reverse/">Python list reverse</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-insert/">Python list insert</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-copy/">Python list copy</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-pop/">Python list pop</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-index/">Python list index</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-remove/">Python list remove</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python programs</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-program-check-number-positive-negative-zero/">Python program to check number is positive or negative</a></li>
 	<li><a href="https://www.code2master.com/python/python-gcd-function/">Python gcd function</a></li>
 	<li><a href="https://www.code2master.com/python/python-program-check-prime-number/">Python program to check prime number</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-sort/">Python program to check prime number in intervals</a></li>
 	<li><a href="https://www.code2master.com/python/python-program-check-armstrong-number/">Python program to check armstrong number</a></li>
 	<li><a href="https://www.code2master.com/python/python-program-check-number-even-odd/">Python program to check if number is even or odd</a></li>
 	<li><a href="https://www.code2master.com/python/find-square-root-number-python/">Python program to find square root of number</a></li>
 	<li><a href="https://www.code2master.com/python/reverse-number-python/">Python program to reverse number</a></li>
 	<li><a href="https://www.code2master.com/python/python-program-find-factors-number/">Python Program to Find Factors of Number</a></li>
 	<li><a href="https://www.code2master.com/python/python-program-check-palindrome-string/&gt;Python program to check palindrome String&lt;/a&gt;&lt;br /&gt; &lt;a href=">factorial program in python</a></li>
 	<li><a href=" https://www.code2master.com/python/python-program-find-largest-among-three-numbers/&gt;Python Program to Find the Largest Among Three Numbers&lt;/a&gt;&lt;br /&gt; &lt;a href=">Python Program to check leap year</a></li>
 	<li><a href=" https://www.code2master.com/python/convert-decimal-to-binary-octal-and-hexadecimal-python/&gt;Python Program to Convert Decimal to Binary, Octal and Hexadecimal&lt;/a&gt;&lt;br /&gt; &lt;a href=">Python Program to Find the Sum of Natural Numbers</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python functions</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-range-function/">Python range function</a></li>
 	<li><a href="https://www.code2master.com/python/python-abs/">Python abs function</a></li>
 	<li><a href="https://www.code2master.com/python/python-dir/">Python dir function</a></li>
 	<li><a href="https://www.code2master.com/python/python-repr/">Python repr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-chr/">Python chr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-dict-function/">Python dict function</a></li>
 	<li><a href="https://www.code2master.com/python/python-getattr/">Python getattr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-hasattr/">Python hasattr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-delattr/">Python delattr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-bool/">Python bool function</a></li>
 	<li><a href="https://www.code2master.com/python/python-setattr/">Python setattr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-bin/">Python bin function</a></li>
 	<li><a href="https://www.code2master.com/python/python-vars/">Python vars function</a></li>
 	<li><a href="https://www.code2master.com/python/python-enumerate/">Python enumerate function</a></li>
 	<li><a href="https://www.code2master.com/python/python-divmod/">Python divmod function</a></li>
 	<li><a href="https://www.code2master.com/python/python-isinstance/">Python isinstance function</a></li>
 	<li><a href="https://www.code2master.com/python/python-sorted-function/">Python sorted function</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-function/">Python list function</a></li>
 	<li><a href="https://www.code2master.com/python/python-tuple-function/">Python tuple function</a></li>
 	<li><a href="https://www.code2master.com/python/python-set-function/">Python set function</a></li>
 	<li><a href="https://www.code2master.com/python/python-map-function/">Python map function</a></li>
 	<li><a href="https://www.code2master.com/python/python-oct/">Python ocr function</a></li>
 	<li><a href="https://www.code2master.com/python/python-hex/">Python hex function</a></li>
 	<li><a href="https://www.code2master.com/python/python-ord/">Python ord function</a></li>
 	<li><a href="https://www.code2master.com/python/python-pow/">Python pow function</a></li>
 	<li><a href="https://www.code2master.com/python/python-next/">Python next function</a></li>
 	<li><a href="https://www.code2master.com/python/python-sum-function/">Python sum function</a></li>
 	<li><a href="https://www.code2master.com/python/python-zip-function/">Python zip function</a></li>
 	<li><a href="https://www.code2master.com/python/python-frozenset/">Python frozenset function</a></li>
 	<li><a href="https://www.code2master.com/python/python-round-function/">Python rouns function</a></li>
 	<li><a href="https://www.code2master.com/python/python-max-function/">Python max function</a></li>
 	<li><a href="https://www.code2master.com/python/python-min-function/">Python min function</a></li>
 	<li><a href="https://www.code2master.com/python/python-filter-example/">Python filter function</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python datetime</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-datetime/">Python datetime</a></li>
 	<li><a href="https://www.code2master.com/python/get-current-date-and-time-python/">Python get current date and time</a></li>
 	<li><a href="https://www.code2master.com/python/python-timeit/">Python timeit</a></li>
 	<li><a href="https://www.code2master.com/python/python-convert-string-to-datetime/">How to convert String to datetime in python</a></li>
</ul>
</section>

<hr />

<h3><span style="color: #800000;">Python utility programs</span></h3>
<section>
<ul>
 	<li><a href="https://www.code2master.com/python/python-split-string-into-list/">How to split string into list in Python</a></li>
 	<li><a href="https://www.code2master.com/python/python-check-list-empty/">python - check if list is empty</a></li>
 	<li><a href="https://www.code2master.com/python/python-set-to-list/">How to convert set to list in Python</a></li>
 	<li><a href="https://www.code2master.com/python/python-list-to-set/">How to convert list to set in Python</a></li>
 	<li><a href="https://www.code2master.com/python/python-compare-strings/">How to compare Strings in Python</a></li>
</ul>
</section></section>That's all about Python tutorial for beginners.

</section>