Quiz 5 – Lists & Strings
Graded Quiz • 30 min Quiz5 Questions Week 3
Re⥃askly Logo

Quiz 5 – Lists & Strings

Graded Quiz • 30 min Quiz5 Questions Week 3
Practice More Quizzes:
Quiz
Quiz
09 Questions Week 2
Quiz
5 Questions Week 2
Quiz
5 Questions Week 3
Quiz
05 Questions Week 3
Quiz
07 Questions Week 4
Quiz
6 Questions Week 4

Q:

What is the correct way to select the third element in a list called ‘my_list’?

Q:

What’s the result of the following code? lst = [1, 2, 3] lst.append(3) lst.pop() print(lst)

Q:

What will be the result of the following code? lst = [1, 2, 3] lst.append(3) lst.pop(0) print(lst)

Q:

What will be the result of the following code? for i in range(5): print(i)

Q:

What will be the result of the following code? myList = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’] print(myList[6:8])

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Find Questions in This Page: "CTRL+F"