Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Když už tímto způsobem, tak je lepší použít while cyklus
- my_list = [1, 0, 0, 1, 1, 0, 1, 3, 1, 4, 5, 6, 1, 1, 1, 1, 1]
- print(my_list)
- removed_value = 1
- while removed_value in my_list:
- my_list.remove(removed_value)
- print(my_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement