There’s a Python in my stocking!
Code to analyse for Question 5:
x = [1, 2, 3]
y = x
y.append(6)
print(x)
Task
- What’s the output of True + True?
2 - What’s the database for installing other peoples libraries called?
PyPi - What is the output of bool(“False”)?
True - What library lets us download the HTML of a webpage?
requests - What is the output of the program provided in “Code to analyse for Question 5” in today’s material?
[1, 2, 3, 6] - What causes the previous task to output that?
Pass by reference