+ 2
Number Ascending order code.
hi everybody. I need a code /programme to make numbers in ascending order. on the program many number would be given as input and output should be their ascending order. can anyone please help me.
1 ответ
+ 1
numbers=[2,5,3,9,1]
numbers.sort()
print(numbers)
Python has a built in sort function. take input, append it to a list, sort list, and print list