Get detailed and accurate answers to your questions on IDNLearn.com. Join our community to receive timely and reliable responses to your questions from knowledgeable professionals.
Dictionaries (write a program on Python!)
A list of students is given.
students = ["Vasya", "Masha", "Petya", "Dima", "Marina", "Lyuba", "Kolya", "Vanya"]
Students' grades for the test work are saved in the grades dictionary:
grades = {"Vasya" : 4, "Petya" : 9, "Marina" : 8, "Lyuba" : 4, "Kolya" : 5, "Vanya": 10}
1) Write a program that displays the name of a student from the students list and his grade. If there is no student's grade from the students list, then the name of the student and the message "I did not write the test paper" should be displayed on the screen.
2) Write a program that displays the names of students who have received excellent grades (8 and above).
3) Write a program that saves the names of students who received good and excellent grades to the good list, and those who received satisfactory and poor grades to the bad list.
HELLPP PLEASEEE! :)
Sagot :
Your participation means a lot to us. Keep sharing information and solutions. This community grows thanks to the amazing contributions from members like you. Your search for answers ends at IDNLearn.com. Thanks for visiting, and we look forward to helping you again soon.