Question: OPYTHON 3 PLEASE 2. A certain video game internally stores the classes of characters as integers. Write a Python program that prompts the user for

OPYTHON 3 PLEASE 2. A certain video game internally stores the classesOPYTHON 3 PLEASE

2. A certain video game internally stores the classes of characters as integers. Write a Python program that prompts the user for an integer called ClassNum whose values should be between 0 and 11, inclusive. Check that the user has entered a value in that range. If he didn't, print an error and then end without printing anything else. For entered values in the correct range, use cascaded if statements and convert that number into a string, according to the table below. Store the string in a string variable. # 1 # 0 3 6 9 Class Name "Barbarian" "Druid" "Paladin" "Sorcerer" Class Name "Bard" "Fighter" "Ranger" "Wizard" # 2 5 8 11 Class Name "Cleric" "Monk" "Rogue" "Aberration" 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!