Guest User

Untitled

a guest
Nov 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  2. num=int(input("choose a number: "))
  3. newlist=[]
  4. for i in a:
  5. if i<num:
  6. newlist.append(i)
  7. print(newlist)
Add Comment
Please, Sign In to add comment