0% found this document useful (0 votes)
3 views

What is Python

Python is a versatile programming language created by Guido van Rossum and released in 1991, used for web development, software development, mathematics, and system scripting. It emphasizes the importance of indentation for defining code blocks and allows for the creation of variables without explicit declaration. Python also supports comments, which can be single-line or simulated multiline comments.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

What is Python

Python is a versatile programming language created by Guido van Rossum and released in 1991, used for web development, software development, mathematics, and system scripting. It emphasizes the importance of indentation for defining code blocks and allows for the creation of variables without explicit declaration. Python also supports comments, which can be single-line or simulated multiline comments.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

What is Python?

Python is a popular programming language. It was created by Guido van Rossum, and released
in 1991.

It is used for:

 web development (server-side),


 software development,
 mathematics,
 system scripting.

What can Python do?

 Python can be used on a server to create web applications.


 Python can be used alongside software to create workflows.
 Python can connect to database systems. It can also read and modify files.

print("Hello, World!")

Python Indentation
Indentation refers to the spaces at the beginning of a code line.

Where in other programming languages the indentation in code is for readability only, the
indentation in Python is very important.

Python uses indentation to indicate a block of code.

Python Comments

Creating a Comment
Comments starts with a #, and Python will ignore them:

Multiline Comments
Python does not really have a syntax for multiline comments.

To add a multiline comment you could insert a # for each line:

Variables
Variables are containers for storing data values.

Creating Variables
Python has no command for declaring a variable.

A variable is created the moment you first assign a value to it.

x=5
y = "John"
print(x)
print(y)

You might also like