79567763

Date: 2025-04-11 00:14:11
Score: 0.5
Natty:
Report link

You can do it with join


numbers = [int(i) for i in input().split()] #Takes Input

new_list = [num for num in numbers if num >= 0] #Removes Negatives

inputs = sorted(new_list) #Sorts Input

print(" ".join(str(num) for num in inputs))

input:
10 4 39 12 2

output:
2 4 10 12 39

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