num1 = 10
num2 = 5.5

summation = num1 + num2
print(summation)

print(num1 - num2)

print(num1 * num2)

print(num1 / num2)
print(num1 // num2)  # returns only integer part of division

print(num1 % num2)

3 ** 2   # 3 raised to the power 2

int(1.9)  # converts float to int

float(3)  # converts int to float

abs(9.5)  # gives absolute value: distance between 0 and the provided value

max(23,89743)

min(5024,2034)

pow(3 , 2)  # 3 raised to the  power of 2


# Boolean operations - and - or - not

# 2 possible answers, (TRUE or 1) and (FALSE or 0)

1 and 0

1 or 0

(4 < 5) and (5 > 10)

2 == 2 or 3 == 4

1 and (not 0)

bool(None)  # False

bool(0)  # False

bool("")  # False

bool([])  # False

bool(1)  # True

bool(100) # True

bool("anything") # True

print(bool("Python 3") and not(23 == 23)) # False




0a8e7a32d7d4a3c5c5c23f680a91bfe99c38fe43
<mask token>

<mask token>
print(summation)
print(num1 - num2)
print(num1 * num2)
print(num1 / num2)
print(num1 // num2)
print(num1 % num2)
3 ** 2
int(1.9)
float(3)
abs(9.5)
max(23, 89743)
min(5024, 2034)
pow(3, 2)
1 and 0
1 or 0
4 < 5 and 5 > 10
2 == 2 or 3 == 4
1 and not 0
bool(None)
bool(0)
bool('')
bool([])
bool(1)
bool(100)
bool('anything')
print(bool('Python 3') and not 23 == 23)

num1 = 10
num2 = 5.5
summation = num1 + num2
print(summation)
print(num1 - num2)
print(num1 * num2)
print(num1 / num2)
print(num1 // num2)
print(num1 % num2)
3 ** 2
int(1.9)
float(3)
abs(9.5)
max(23, 89743)
min(5024, 2034)
pow(3, 2)
1 and 0
1 or 0
4 < 5 and 5 > 10
2 == 2 or 3 == 4
1 and not 0
bool(None)
bool(0)
bool('')
bool([])
bool(1)
bool(100)
bool('anything')
print(bool('Python 3') and not 23 == 23)

num1 = 10
num2 = 5.5

summation = num1 + num2
print(summation)

print(num1 - num2)

print(num1 * num2)

print(num1 / num2)
print(num1 // num2)  # returns only integer part of division

print(num1 % num2)

3 ** 2   # 3 raised to the power 2

int(1.9)  # converts float to int

float(3)  # converts int to float

abs(9.5)  # gives absolute value: distance between 0 and the provided value

max(23,89743)

min(5024,2034)

pow(3 , 2)  # 3 raised to the  power of 2


# Boolean operations - and - or - not

# 2 possible answers, (TRUE or 1) and (FALSE or 0)

1 and 0

1 or 0

(4 < 5) and (5 > 10)

2 == 2 or 3 == 4

1 and (not 0)

bool(None)  # False

bool(0)  # False

bool("")  # False

bool([])  # False

bool(1)  # True

bool(100) # True

bool("anything") # True

print(bool("Python 3") and not(23 == 23)) # False



