a = 24
- a is the variable
- 24 is the literal
- = is the operator
This works thus…
a = 3 b = 8 z = a + b print(z) 11
This however works differently!
a = input("a: ")
a: 3
b = input("b: ")
b: 8
z = a + b
print(z)
38
a = 24
This works thus…
a = 3 b = 8 z = a + b print(z) 11
This however works differently!
a = input("a: ")
a: 3
b = input("b: ")
b: 8
z = a + b
print(z)
38