variables, expression and statement
Numeric Expression
| operator | operation |
|---|---|
| + | Addition |
| - | Subtraction |
| * | Multiplication |
| / | Division |
| ** | Power |
| % | Remainder |
String Conversion
name = input('who r u?')
print('welcom',name)
Output
who r u? Pin
welcom Pin
inp =input('Europe floor?')
usf = int(inp)+1
print('US floor',usf)
Output
Eroupe floor?0
US floor 1
to comment in python just type #