Shen Shen
March 15, 2024
import random
terms= ["fall2023", "spring2023", "fall2022", "spring2022",
"fall2021", "fall2019", "spring2019", "fall2018"]
qunums = range(1,9)
base_URL = "https://introml.mit.edu/_static/spring24/midterm/review/midterm-"
term = random.choice(terms)
num = random.choice(qunums)
print("term:", term)
print("question number:", num)
print(f"Link: {base_URL+term}.pdf")
More detailed CliffsNotes