Question: 1. Show the output of the following Python program: L = [7, 5, 2, 0] for i in range (1,4): L[i-1] = L[i] =
1. Show the output of the following Python program: L = [7, 5, 2, 0] for i in range (1,4): L[i-1] = L[i] = temp L[i] = L[i-1] =L[i]-L[i-1] L[i] L[i-1] = temp for i in range (0, 4): print (str (L[i]), end=" ")
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Output of the given python program is as follows Steps 1 Initial Lis... View full answer
Get step-by-step solutions from verified subject matter experts
