what is python

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.Python is a very simple language,and has very straightforward syntax. It encourages programmers without prepared code.

There are two versions:

1. Python 3

2. python 2

But mostly used major version Python is Python 3.It is under active development.Migrating to Python 3 is getting easy.

Then Python 2 will receive only security updates until 2020.No new features will be implemented.Many projects still use Python 2.

What Can Python Do

  • It is used for web development (server-side),software development, mathematics,system scripting.

  • It can be used on a server to create web applications.

  • It can be used alongside software to create workflows.

  • It can connect to database systems. It can also read and modify files.

  • It can be used to handle big data and perform complex mathematics.

  • It can be used for rapid prototyping, or for production-ready software development

  • Python has a simple syntax similar to the English language.

  • It has syntax that allows developers to write programs lines than some other programming languages.

  • It runs on an interpreter system, that code can be executed as soon as it written. This means that prototyping can be very quick.

  • It can be treated in a procedural way, an object-orientated way or a functional way.Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).

Installing Python

Python distribution is available for a wide variety of platforms. You need to download only the binary code applicable for your platform and install Python.

Many PCs and Macs will have python already installed.

To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line (cmd.exe):

C:\Users\Your Name>python

To check if you have python installed on a Linux or Mac, then on linux open the command line or on Mac open the Terminal and type:

python --version 

Python is an interpreted programming language, this means that as a developer you write Python (.py) files in a text editor and then put those files into the python interpreter to be executed. The way to run a python file is like this on the command line:

C:\Users\Your Name>python helloworld.py 

print("Hello, World!")

The Output is:

Hello, World!

The following on the Windows, Mac or Linux command line:

C:\Users\Your Name>python 

Or, if the "python" command did not work, you can try "py":

C:\Users\Your Name>py 


Python uses Indentation for blocks,instead of curly braces.Both tabs and spaces are supported,but the standard indentation requires standard Python code to use four spaces.

For Example:

x = 1
if x = 1;
    #indented four spaces
   print "x is 1."

The Output is:

x is 1


Python - RegEx SETS

posted on 2019-11-12 23:06:24 - Python Tutorials


Python - RegEx_Functions

posted on 2019-11-09 06:07:29 - Python Tutorials


Python - RegEx_Sets

posted on 2019-11-09 05:30:54 - Python Tutorials

Prompt Examples

ChatGPT Prompt Examples

posted on 2023-06-21 22:37:19 - ChatGPT Tutorials

Use Cases

Chat GPT Key Use Cases

posted on 2023-06-21 21:03:17 - ChatGPT Tutorials

Prompt Frameworks

Prompt Frameworks

posted on 2023-06-21 19:33:06 - ChatGPT Tutorials