Create a list of 20 numbers and (a) Sort the list (b) (b) Print the reverse of the sorted list Given the code: myList = ['1','2','3','4','5'] for z in range(0,len(myList)) text = ' '.join(myList[z]) ...


Create a list of 20 numbers and


(a) Sort the list


(b) (b) Print the reverse of the sorted list


Given the code:


myList = ['1','2','3','4','5']


for z in range(0,len(myList))


text = ' '.join(myList[z])


text.center(10)


(a) If this code is run in the shell, what is the output?



(b) If this code is a program that is then run in the shell, what is the output?


(c) Why is the output different?



(d) Fix the program to run the same in both environments

Nov 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here