x = int(input())
list = []
for i in range(0,x):
emu = (input())
list.append(emu)
for q in range(len(list)):
if (list[q]!= 42):
print(list[q])
else:
break
created
last reply
- 1
reply
- 533
views
- 2
users
- 1
link
x = int(input())
list = []
for i in range(0,x):
emu = (input())
list.append(emu)
for q in range(len(list)):
if (list[q]!= 42):
print(list[q])
else:
break
It looks like this might be for TEST7, except you’re expecting the first line to have the number of values. It doesn’t.