Advertisement
KNenov96

Untitled

Oct 6th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. lst_of_numbers = list(map(int, input().split()))
  2. numbers_to_remove = int(input())
  3.  
  4. for num in range(numbers_to_remove):
  5.     smallest = min(lst_of_numbers)
  6.     lst_of_numbers.remove(smallest)
  7. print(", ".join(str(x) for x in lst_of_numbers))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement