Course Solutions Uncategorized (Solved) : Need Help Modifying Python Code Creates List 1 100 3 98 5 96 99 0 Odd Terms Order Even Te Q32357704 . . . .

(Solved) : Need Help Modifying Python Code Creates List 1 100 3 98 5 96 99 0 Odd Terms Order Even Te Q32357704 . . . .

 

def list_rev (n): L = list (range (1,101)) for i in range(len (L)): print(L)

I need help modifying this python code so that it creates thelist [1,100,3,98,5,96,…,99,0], where the odd terms are in orderand the even terms are in reverse order.

def list_rev (n): L = list (range (1,101)) for i in range(len (L)): print(L) Show transcribed image text

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post