0

X=5 X%=9 X+=4 print (X)

Please can someone help me with how to do the calculations am confused

19th Jan 2023, 5:52 AM
Mizta Ben
Mizta Ben - avatar
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))
19th Jan 2023, 7:58 AM
Per Bratthammar
Per Bratthammar - avatar