Python Tutorial

Python is a interpreted, high level programming language created by Guido van Rossum and released in year 1991. Python is known for using white-space significantly and also, support a lot of programming paradigms such as

  • Procedural programming
  • Functional programming
  • Object-oriented programming

The current version of python programming language is known as Python 3.x which is completely different from its predecessor Python 2.x. If you learned python 2.x then you may have to relearn everything because there is little backward compatibility from Python 3.x to Python 2.x.

This tutorial aim to teach you python with respect to different programming paradigms.


There is not mathematical or programming experience required to learn from this tutorial. However, if you are interested in learning math and other computer science topics. Learn from our other tutorials.

To learn from this tutorial, you need following

Python Software – You need to download the latest python software from website and install it on your computer.


Anaconda Python – Anaconda is an open-source python distribution that not only provide you with python software, but also, give you opportunity to organize your python projects and learn data science and machine learning.

Text Editor – Some programmers like to write their code in text editors and later run it separately. Python allows you to create your own file and save it using Python software or Anaconda Jupiter .

But that does not stops from write your code in Windows Notepad, Notepad++ or Sublime Text. The choice is yours.

Python Topics

Python SetupProgramming Concepts
Installing PythonProgramming Paradigms
Interactive ModeError Types
Scripting ModeDebugging Techniques
Python BasicsConditional Structures
Data TypesIf Statement
Python Variables If-Then-Else
Type CastingIf-Then-Elif-Else
Arithmetic OperatorsNested If
Logical OperatorsConditionals & Operators
Python Functions For Loop
Python Function BasicsFor-Each Loop
No Parameters, No ReturnWhile Loop
No Parameter, With ReturnNested Loops
With Parameter, No ReturnContinue, Break, & Pass
With Parameter And ReturnPython Strings
Function Common ErrorsString Basics
Function Return None TypeString Declaration
Keyword ParametersString Concatenation
Exception Handling String Slicing
Error HandlingString Methods
Try BlockPython Tuples
Except BlockTuple Overview
Else BlockAccessing Tuples
FinallyNested Tuples
Nested Try-CatchPython Lists
Python Data Structures List Declaration
Data Structures OverviewAccessing List Items
Passing-by-valueList Methods
Mutable vs. Non-MutableLoops & 2-D Lists
Built-in MethodsList & Functions
Advanced Data Structures List & Tuples
Stack in PythonPython Dictionary
Queue Structure in PythonWhat is Dictionary ?
Python File HandlingAdding To Dictionary
Writing To A FileUpdating Dictionary
Writing List To File
Reading File
Appending File
File Mode
List Of File Methods