79120038

Date: 2024-10-24 00:06:50
Score: 1
Natty:
Report link
inp = input ()
my_list = [int(i) for i in inp.split() if int(i) >= 0]
my_list.sort()
print(*my_list,end=' ')

#converts user input into a list of integers using list comprehension, and adds the condition IF to remove the negative integers, then sorts the items of the list in place

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: pinkflame