Exercise Set 18

Exercise 1 of 5

Print the name of each student on a separate line. Do not use .keys().
scores = {"Alice": 98, "Bob": 77, "Charlie": 85}

Your code

Exercise 2 of 5

Print the name of each student on a separate line. Use .keys().
scores = {"Alice": 98, "Bob": 77, "Charlie": 85}

Your code

Exercise 3 of 5

Print the score of each student on a separate line. Use .values().
scores = {"Alice": 98, "Bob": 77, "Charlie": 85}

Your code

Exercise 4 of 5

Write the start of the loop to print the name and score of each student.
scores = {"Alice": 98, "Bob": 77, "Charlie": 85}
# start of loop here
  print(f"{name} scored {score}")

Your code

Exercise 5 of 5

Write the body of the loop to print the name and score of each student, like in the previous exercise.
scores = {"Alice": 98, "Bob": 77, "Charlie": 85}
for name in scores:
  # print name and score here

Your code