Displays a rank in the defined dictionary. a) Create a dictionary, rank= {1:"Freshman", 2:"Sophmore", 3:"Junior", 4:"Senior"} b) Request a user input for a number of years. c) Print the value of the...

Python
Displays a rank in the defined dictionary.<br>a) Create a dictionary, rank= {1:

Extracted text: Displays a rank in the defined dictionary. a) Create a dictionary, rank= {1:"Freshman", 2:"Sophmore", 3:"Junior", 4:"Senior"} b) Request a user input for a number of years. c) Print the value of the matching key in the dictionary. d) Print the error message if input is invalid.

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here