Question: QUESTION THREE Trace the following python codes and give the correct output without using the compiler. 1. x= [apple, banana, cherry) print(x[0][3] print(x[0]++ x[1]) print(x[-2]
QUESTION THREE Trace the following python codes and give the correct output without using the compiler. 1. x= ["apple", "banana", "cherry") print(x[0][3] print(x[0]+""+ x[1]) print(x[-2] Solution: 2. print (list(range( 1000, 1000000, 100000))) print (list(range(-1000, -1000000, Solution: Page 2 of 3 ty" 3. print (list(range(17,5,-2))) Solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
