0
Python. Can someone please explain whats the problem at the if statement?
I repeat this because no one said anything about that problem. a = int(input()) while a != 1: print (a) if a & 2 = 0: a = a // 2 else : a = a * 3 + 1 print (a)
2 ответов
+ 1
The modulo operator is %, not &. Also, ==, not =
0
Anna
Thx I mixt it