Week 2 Unit 3: Self-test

22. October 2024

Question 1

What is the value of variable x after the following statements have been executed?

week2 unit3 f1

1
4
3
2

Question 2

What is the value of list1 after the following statements have been executed?

week2 unit3 f2

[1, 2, 3, 1, 2, 3, 1, 2, 3]
[1, 1, 1, 2, 2, 2, 3, 3, 3]
[1, 2, 3]
[3, 1, 2, 3, 1, 2, 3, 1, 2]

< Previous unit | Next unit > | Course Overview