Python3 Cheet Sheet
Print a + b
if __name__ == '__main__':
a = int(input())
b = int(input())
print(a + b)
Number Type
if __name__ == '__main__':
a = 2004
a = 1.2
a = 3.14E-10
a = 0o77 # octal
a = 0x3f # hexadecimal
a = 2 ** 10 # power
a = 123 // 11 # quotient
a = 123 % 11 # remainder
print(a)
print(type(a))
String Type
```python if name == ‘main’: s = “I’m shnoh” s = ‘He said “Hello”’ s = “He said "Hello"” s = “How are you?\tI’m fine\n”
More …