Sunday 30 August 2020

Python Indentation

 

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.


Example

if 5 > 2:
  print("Five is greater than two!")    

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home