python Tutorial for beginners

Updated:31/Dec/2023 by Computer Hope

Python is a robust programming language that is simple to learn. Its object-oriented programming methodology is straightforward but efficient, and it includes good high-level data structures. Python is a fantastic language for scripting and quick application development in many domains on most platforms because to its clean syntax, dynamic typing, and nature of being an interpreted language.

How to Write python program

  • Download Thonny IDE.
  • Run the installer to install Thonny on your computer.
  • Go to: File > New. Then save the file with .py extension. For example,,, etc.
  • You can give any name to the file. However, the file name should end with .py
  • Write Python code in the file and save it

Python Comments

A comment does not have to be text that explains the code, it can also be used to prevent Python from executing code:
#print("Hello, World!")
print("shubham, Mate!")

Why is python Used For development ?

AI and machine learning
Data analytics
Data visualisation
Web development

What is a python feature

  • Free and Open Source
  • OOPs support
  • GUI Programming Support
  • Python is an Extensible language. We can write some Python code into C or C++
  • Python is a Portable language
  • Python is an Interpreted Language because Python code is executed line by line
  • Frontend and backend development
  • In Python, the variable data type does not need to be specified.

Below is an example of a basic   Python   that would print Even odd number

def check(n):
    if (n < 2):
        return (n % 2 == 0)
    return (check(n - 2))
n=int(input("Please Enter number:"))
      print("output: Number is even!")
      print("Number is odd!")

Mandatory Tools you will need to install before work on Python.

  • you will need a Pentium 200-MHz computer with a minimum of 128 MB of RAM
  • Linux 7.1 or Windows 95/98/2000/XP operating system.
  • Integrated development environment Software / Python
  • Most popular IDEs for experienced Python developers are PyCharm and Visual Studio Code.

Latest Technical Post