How to learn Python – Get started.

blog img

The Python language provides many useful features for programmers. Python is the most popular and widely used language because of these features.

History of Python

Python is a general purpose defined, interactive, object-oriented and high-level programming language. It was created by Guido van Rossum during the 1985- 1990 period.

Why to learn Python?

Python is a high-level, defined, interactive and object-oriented scripting language. Python is designed to be more readable. It often uses English keywords, where other languages ​​use punctuation, and it has less syntactic structures than other languages.

  • Is Interpreted − Python is processed at runtime by the interpreter
  • Is interactive − You can actually sit at a python prompt and interact (communicate) directly with the interpreter to write your programs.
  • Is a Beginner’s Language − Python is a Beginner’s Language Python is a good language for beginner-level programmers and supports the development of a wide range of applications.
  • Is Object-Oriented − Python supports an object-oriented style or programming technique that involves code in objects.

Python Installed?

To find out if Python is installed on your computer, type the following command line for Windows.

 run the following on the Command Line in cmd.exe

For windows

C:\Users\User Name>python version

For Linux or Mac, Linux open the command line or on Mac open the Terminal and type (Below command line)

For Mac / Linux

python version

If you find that you have not installed Python on your computer, you can download it for free from the following website:

Download for Windows : Python 3.9.4

Get Started

Python is a defined programming language with its file extension (.py). So you write Python (.py) files in a text editor and put them in a Python interpreter to execute those files.

First let’s prepare a Python file called in any text editor. Insert the following code into the file and then save your file into the python interpreter to be executed.

print(“Hello, Python!”)

Open a command prompt on your computer enter below command line and Before running, enter your name instead of the Your name must use file extension (.py) and run.

Command line

C:\Users\Your Name>python

Share your thoughts

Your email address will not be published. All fields are required.

Related post

  1. Python program – best features

    Python is the…