Piszę sobie testy i mam taki kod czy on jest poprawnie zapisany działa jak trzeba i wypisuje dobre wyniki
Example
Input:
1
2
88
42
99
Output:
1
2
88
tab=[]; i=0;
print "Input:"
while(1):
i+=1
tab.append(raw_input())
if tab[i-2]=='42': break
print "Output:"
for i in range(len(tab)-2):
print tab[i]