Lecture 11: Conclusion
2026-05-15
1.0 of this courseAfter running git commit, your changes are immediately visible to your teammates on GitHub.
True or false
🔳 True
🔳 False
class BankAccount:
def __init__(self, owner_name):
self.owner_name = owner_name
self.balance = 0
def withdraw(self, amount):
if amount <= self.balance:
self.balance = self.balance - amount
print(f"New balance: ${self.balance}")
else:
print("Withdrawal denied.")
def deposit(self, amount):
self.balance = self.balance + amount
# Example
my_account = BankAccount(owner_name="Franziska")
my_account.deposit(30)
my_account.withdraw(50)
my_account.deposit(100)
print(my_account.balance)owner_name when creating an instance, it will be None.my_account.balance will be 80.deposit() and withdraw() can be used, because nothing prevents amount from being negative.It does not matter whether I do a LEFT JOIN or an INNER JOIN from my fact table to a dimension table in a star schema where relational integrity holds.
Only one correct.
LEFT JOIN always returns more rows than an INNER JOIN.INNER JOIN could silently drop rows from the fact table if a foreign key has no match in the dimension table.In the group project, you were asked to use pull requests when working on github. Explain (1) how pull requests work, and (2) what are the advantages of using them, and (3) an example from your group project. Answer in max 70 words.
We use a dataset of World Bank indicators across countries and years to build two visualisations:
csv archive. Unzip the archive into week_11/data/.The data is more “messy” than the CEPII dataset or the FRED dataset.