5 feet 11
- there is no need of semicolon in python ;
- and there is no need of the {}
- after the condition statement and loops you should end with :
- if any thing written in the “” double quots then it is considered as string
- input function by default returns the string value
- different between the list and the tuple
- char is not there in the python char is also considered as string
❌ Why this is wrong
print(movies=[movie1,movie2,movie3])
Because:
print() is only for printing
- Variable assignment must be done outside
print()
/ vs //
/ → normal division → gives float
5 /2# 2.5
// → integer (floor) division → gives integer