3 / 3
Mar 2017

while True:
n = input()
if n == 42:
break
else:
print (42)
this code keeps returning NZEC but i don't know why, please help

  • created

    Mar '17
  • last reply

    Mar '17
  • 2

    replies

  • 1.4k

    views

  • 2

    users

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.