Page 1 of 1

QUESTION 22 What is the output of the following program: x= [] x.append(2) x.append(3) x.append(1) y=x.pop(2) x.append(4

Posted: Fri Jul 08, 2022 7:27 am
by answerhappygod
Question 22 What Is The Output Of The Following Program X X Append 2 X Append 3 X Append 1 Y X Pop 2 X Append 4 1
Question 22 What Is The Output Of The Following Program X X Append 2 X Append 3 X Append 1 Y X Pop 2 X Append 4 1 (37.53 KiB) Viewed 27 times
QUESTION 22 What is the output of the following program: x= [] x.append(2) x.append(3) x.append(1) y=x.pop(2) x.append(4) x.insert (1,5) x.insert (2,6) print(len(x)) a. 4 b. 1 c. 3 d. 5 QUESTION 23 What is printed on the screen after the following Python code executes: 1 s="I shook up the world. Me! Whee!" 2 3 4 5 r=s[:5] n=s[2:7] print (r) print (n) a. I sho shook b. World Me c. Me Whee O d. Nothing is printed on the screen