expressions
print(100)
is an integar (numberic data type)
and
print('Hello World')
is a string data type
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 |