Select Page

Question1.23 LAB: Warm up: Variables, input, and type conversion(1) Prompt the user to input an integer between 32 and 126, a float, a character, and a string, storing each into separate variables. Then, output those four values on a single line separated by a space. (Submit for 2 points).Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user’s input value is shown on the next line, but such values don’t actually appear as output when the program runs.Enter integer (32 – 126):99Enter float:3.77Enter character:zEnter string:Howdy99 3.77 z Howdy(2) Extend to also output in reverse. (Submit for 1 point, so 3 points total).Enter integer (32 – 126):99Enter float:3.77Enter character:zEnter string:Howdy99 3.77 z HowdyHowdy z 3.77 99(3) Extend to convert the integer to a character by using the ‘chr()’ function, and output that character. (Submit for 2 points, so 5 points total).Enter integer (32 – 126):99Enter float:3.77Enter character:zEnter string:Howdy99 3.77 z HowdyHowdy z 3.77 9999 converted to a character is c247772.2304906.qx3zqy7LAB ACTIVITY1.23.1: LAB: Warm up: Variables, input, and type conversion#main2.py#read integer valueuser_int = int(input(‘Enter integer (32 – 126):n’))#read float valueuser_float = float(input(‘Enter float:n’))#read enter characteruser_char = input(‘Enter character:n’)#read string valueuser_string = (input(‘Enter string:n’))#print values in single line in reverse order with spaceprint(user_string,’ ‘,user_char,’ ‘,user_float,’ ‘,user_int)Computer ScienceEngineering & TechnologyPython Programming

Order your essay today and save 20% with the discount code ESSAYHELP