is there any code of this question in python to print those given numbers and the question instruction is down blow? [closed]
Solution 1:
This code should do the trick for you:
numbers = "23,67,78,12,5,600,23,67,23,75"
list = numbers.split(",") #Splitting the commas
list.sort(key=int, reverse=True) #sorting it into descending order
print(", ".join(list)) #Printing it out as a string
reverse=True
prints out it in descending order, as seen below:
Without that or with reverse=False
you will get them in ascending order: