Colledge of Science and Technology: ITE201: Python Programming
Colledge of Science and Technology: ITE201: Python Programming
✓ Python is case-sensitive
▪ name is not the same as Name (different Capital letter)
✓ Line indentation (No Curly Braces {…} ) indicates grouping of
statements
▪ Some other program use {…} for block of code or grouping but
Python use Indent
▪ Semicolon ; is optional (for ending a statement of code)
a = 10
if a<20:
print("a is less than 20")
else:
print("a is greater than 20")
✓ Multiline Statements
▪ Python does not allow to break statement normally by pressing
enter
▪ Use backslash ( \ ) for break the line of code for a statement.
Comment in Python
✓ Comment is ignored when processing the code
✓ Comment is useful for providing explanation for specific part of code
✓ Comment is useful for skip some parts of the code
✓ Comment is useful to find errors