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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
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
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