#try to avoid input function a = [1,5,4,23,-65,65,-99,54,100,34,32,67,44,4,7] a.sort() print("ascending order",a) a.reverse() print("descending order",a)
Click the run button. Try to avoid input() function.