Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Students = [Tom, Jack, Jane, Mike, Stan] Gpa = [2.8, 3.0, 3.6, 3.2, 2.5] Where, Toms gpa is 2.8, Jacks is 3.0, etc. Write a
Students = [Tom, Jack, Jane, Mike, Stan]
Gpa = [2.8, 3.0, 3.6, 3.2, 2.5]
Where, Toms gpa is 2.8, Jacks is 3.0, etc.
Write a Python program that repeatedly asks the user to type a name of a student. If the student name is in the students list, the program should print a message with the student name and gpa. If the student name is not in the list, then print an appropriate message. The program should terminate when the user, done.
Write your program as a single main() function.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started