Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 9, 10, 6, 4, 11, 9, 9, 10
- digits = list(map(int, input().split(", ")))
- removed_list = []
- for x in digits:
- if x > 6:
- removed_list.append(x)
- for y in removed_list:
- digits.remove(y)
- print(digits)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement