Introduction Variables Data Types Numbers Casting Strings Boolean Operators Lists Tuples Dictionaries If-Else While Loops For Loops Functions Arrays Scope Modules User Input File Handling Python Maths

Let's start learning Python!

What is Python?

Python is a popular programming language.

What can Python do?

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

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

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

Getting Started

Examples that you can try it yourself will be in an embed IDE. No installation is required.

Python Syntax

Python syntax can be executed by writing in the code in an IDE

syntax

Python Indentation

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

the indentation in Python is very important. Python uses indentation to indicate a block of code.

syntax

Python will give you an error if you skip the indentation:.

syntax

Python Comments

Comments can be used to explain Python code.

Comments can be used to make the code more readable.

Creating a Comment

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

syntax

comments does not necessarily have to be text that explains the code, it can also be used to prevent Python from executing that line of code:

syntax

We are come to the end of the introduction. Here's a short quiz to test what you have learned

Next Lesson
Back To Top