Advertisement
pacho_the_python

Untitled

Feb 23rd, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. # 9, 10, 6, 4, 11, 9, 9, 10
  2.  
  3. digits = list(map(int, input().split(", ")))
  4. removed_list = []
  5.  
  6. for x in digits:
  7.     if x > 6:
  8.         removed_list.append(x)
  9.  
  10. for y in removed_list:
  11.     digits.remove(y)
  12.  
  13. print(digits)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement