Python Syntax | How To Execute Python Syntax | TECH WORTH MIND
Here we will learn Python syntax, the syntax of Python is very simple and easy to understand.
How to execute Python syntax?
Just write directly in the comment line and execute the Python syntax.
Python Indentation/whitespace
Indentation means the space at the beginning of a code line.
In other programming languages, we use a semicolon and curly bracket but in Python, we use space to indicate the block of code.
Indentation play important role in Python programming in readability as well as to define the scoop.
Example:- if 5>2:
print("Five is greater than two!")
Python displays an error if you miss the indentation.
The number of spaces depends upon you, but it has to be at least one.
Comments
Post a Comment
DON'T COMMENT LINK.