+ 1
what is wrong in this code? i just can't fix it.
list=[1,2,3,4,5,6,9] new_list=[] n=int(input('enter a number: ') for i in list: if i<n: new_list.append(i) else: pass print(new_list)
3 odpowiedzi
+ 6
Missing a bracket at line 4.
Fix: n = int(input('Enter a number: '))
+ 3
Haha, you’re welcome
+ 1
TurtleShell you just saved my sanity.