Shen Shen
October 18, 2024
import random
terms= ["spring2024",
"fall2023",
"spring2023",
"fall2022",
"spring2022",
"fall2021",
"fall2019",
"spring2019",
"fall2018"]
qunums = range(1,10)
base_URL = "https://introml.mit.edu/_static/fall24/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