+ 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.

20th Jul 2017, 10:29 AM
Abhi DG
Abhi DG - avatar
1 Respuesta
+ 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
20th Jul 2017, 10:50 AM
LordHill
LordHill - avatar