Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Number 2 is already complete just need help in formatting it to problem number 4, as seen in the Pycharm screenshot, i have completed the

image text in transcribed

image text in transcribed

image text in transcribed

Number 2 is already complete just need help in formatting it to problem number 4, as seen in the Pycharm screenshot, i have completed the table. PLEASE USE PYTHON 3.

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. # 0 3 6 19 Class Name "Barbarian" "Druid" "Paladin" "Sorcerer' # 11 4 7 10 Class Name "Bard" "Fighter" "Ranger" "Wizard" # 2 5 | 8 11 Class Name "Cleric" "Monk" "Rogue" "Aberration" Print the value of the stored string as the Character Class Name. #hw02.02 ClassNum = int(input("Enter the value: ") if (ClassNum> and ClassNum

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

y 2 - x 2 /x 2 - y 2 A. 1 B. 1 C. 0 D. 2 E. 2

Answered: 1 week ago