0
X=5 X%=9 X+=4 print (X)
Please can someone help me with how to do the calculations am confused
1 Answer
+ 1
# Hi, Mizta Ben !
# You can write it like this:
x = 5
x %= 9
x += 4
print(x)
# It's the same as:
x = 5
x = x % 9
x = x + 4
print(x)
# Or simplified, the same as:
print(((5 % 9) + 4))