• title: MLB Trivia 2
  • categories: [jupyter]

Welcome to the second MLB quiz. How many can you get right?

  • Enter the letter which you think is the answer to the question
q1 = """Which team traded Fernando Tatis Jr. to the Padres?
a. Boston Red Sox
b. Chicago White Sox
c. Cincinnati Reds
d. Seattle Mariners"""

q2 = """Which team won the NL West title in 2021?
a. Los Angeles Dodgers
b. San Diego Padres
c. San Francisco Giants
d. Arizona Diamondbacks"""

q3 = """Who hit the walk-off home run against the Cardinals which sent the Dodgers in the NLDS?
a. Chris Taylor
b. Trea Turner
c. Mookie Betts
d. Justin Turner"""

q4 = """Name the two teams in the 2019 World Series.
a. New York Yankees, Los Angeles Dodgers
b. Houston Astros, San Francisco Giants
c. Washington Nationals, Tampa Bay Rays
d. Houston Astros, Washington Nationals"""

q5 = """When did Manny Machado and Fernando Tatis Jr. make their Padres debut?
a. 2018
b. 2019
c. 2020
d. 2021"""

q6 = """Name the stadium of the Boston Red Sox.
a. Fenway Park
b. T-Mobile Park
c. Minute-Maid park
d. The Great American Ballpark"""

q7 = """Who won the 2018 AL Cy Young Award?
a. Justin Verlander
b. Patrick Corbin
c. Clayton Kershaw
d. Blake Snell"""

q8 = """In 2016, the Chicago Cubs won the World Series after how many years?
a. 56
b. 108
c. 119
d. 65"""

q9 = """Which league division are the New York Yankees in?
a. AL Central
b. NL East
c. NL West
d. AL East"""

q10 = """Which team did Brandon Drury play for?
a. San Diego Padres
b. New York Mets
c. Toronto Blue Jays
d. Arizona Diamondbacks
e. All of the above"""

questions = {q1: "b", q2: "c", q3: "a", q4: "d", q5: "b", q6: "a", q7: "d", q8: "b", q9: "d", q10: "e" }

name = input("Enter your name: ")
print(name, "how many can you get right?")
score = 0
for i in questions:
    print(i)
    ans = input("Choose the answer which you think is right.")
    if ans == questions[i]:
        print("correct!")
        score = score+1
    else:
        print("sorry, that was incorrect.")

print("Your final score is ",score)
Rohan how many can you get right?
Which team traded Fernando Tatis Jr. to the Padres?
a. Boston Red Sox
b. Chicago White Sox
c. Cincinnati Reds
d. Seattle Mariners
correct!
Which team won the NL West title in 2021?
a. Los Angeles Dodgers
b. San Diego Padres
c. San Francisco Giants
d. Arizona Diamondbacks
sorry, that was incorrect.
Who hit the walk-off home run against the Cardinals which sent the Dodgers in the NLDS?
a. Chris Taylor
b. Trea Turner
c. Mookie Betts
d. Justin Turner
correct!
Name the two teams in the 2019 World Series.
a. New York Yankees, Los Angeles Dodgers
b. Houston Astros, San Francisco Giants
c. Washington Nationals, Tampa Bay Rays
d. Houston Astros, Washington Nationals
sorry, that was incorrect.
When did Manny Machado and Fernando Tatis Jr. make their Padres debut?
a. 2018
b. 2019
c. 2020
d. 2021
sorry, that was incorrect.
Name the stadium of the Boston Red Sox.
a. Fenway Park
b. T-Mobile Park
c. Minute-Maid park
d. The Great American Ballpark
sorry, that was incorrect.
Who won the 2018 AL Cy Young Award?
a. Justin Verlander
b. Patrick Corbin
c. Clayton Kershaw
d. Blake Snell
sorry, that was incorrect.
In 2016, the Chicago Cubs won the World Series after how many years?
a. 56
b. 108
c. 119
d. 65
sorry, that was incorrect.
Which league division are the New York Yankees in?
a. AL Central
b. NL East
c. NL West
d. AL East
sorry, that was incorrect.
Which team did Brandon Drury play for?
a. San Diego Padres
b. New York Mets
c. Toronto Blue Jays
d. Arizona Diamondbacks
e. All of the above
sorry, that was incorrect.
Your final score is  2