Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 397 Bytes

Python - CheatSheet.md

File metadata and controls

27 lines (18 loc) · 397 Bytes

Values and data types

expressions

print(100)

is an integar (numberic data type)

and

print('Hello World')

is a string data type

Operators

print(1 + 1)

Operator Name Example
+ Addition x + y
- Subtraction x - y
* Multiplication x * y
/ Division x / y
% Modulus x % y
** Exponentiation x ** y
// Floor division x // y