q1 = """Which major player requested a trade in the 2022 NBA offseason but never actually got traded?
a. Jayson Tatum
b. James Harden
c. Kevin Durant
d. Lebron James"""

q2 = """Which team won the west in the year 2021?
a. Phoneix Suns
b. Milwuake Bucks
c. LA Lakers
d. Brooklyn Nets"""

q3 = """Who was the back to back mvp in the years of 2021 and 2022?
a. Giannis Antetokounmpo
b. Nikola Jokic
c. Lebron James
d. Kevin Durant"""

q4 = """Which NBA player led the league in scoring in the year 2022?
a. Nikola Jokic
b. James Harden
c. Bradley Beal
d. Joel Embiid"""

q5 = """What big time player got traded to the sixers in the middle of the 2022 season?
a. Tobias Harris
b. Joel Embiid
c. Kevin Durant
d. James Harden"""



questions = {q1: "c", q2: "a", q3: "b", q4: "d", q5: "d",}

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)
 how many can you get right?
Which major player requested a trade in the 2022 NBA offseason but never actually got traded?
a. Jayson Tatum
b. James Harden
c. Kevin Durant
d. Lebron James
correct!
Which team won the west in the year 2021?
a. Phoneix Suns
b. Milwuake Bucks
c. LA Lakers
d. Brooklyn Nets
correct!
Who was the back to back mvp in the years of 2021 and 2022?
a. Giannis Antetokounmpo
b. Nikola Jokic
c. Lebron James
d. Kevin Durant
correct!
Which NBA player led the league in scoring in the year 2022?
a. Nikola Jokic
b. James Harden
c. Bradley Beal
d. Joel Embiid
sorry, that was incorrect.
What big time player got traded to the sixers in the middle of the 2022 season?
a. Tobias Harris
b. Joel Embiid
c. Kevin Durant
d. James Harden
correct!
Your final score is  4

"Notebook Check"

  • toc:true
  • branch: master
  • badges: true
  • comments: true
  • author: Saavan Gade
  • categories: [CSP Assignments, Week 1]