while True: n = input() if n == 42: break else: print (42)this code keeps returning NZEC but i don't know why, please help
Indentation matters. Please post your code formatted.
Input() returns a string (https://docs.python.org/3/library/functions.html#input), which you compare to an integer.
thanks, that helpt