Question: (1) Prompt the user to input an integer between 32 and 126 , a float, a character, and a string, storing each into separate variables.


(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. (3) Extend to convert the integer to a character by using the 'chr0' function, and output that character. (Submit for 2 points, so 5 points total). Enter integer (32126) : 99 Enter float: 3.77 Enter character: z Enter string: Howdy 993.77 z Howdy Howdy z 3.7799 99 converted to a character is c 456476.3053726.qx3zqy7 \begin{tabular}{l|l} LAB & 1.25.1: LAB: Warm up: Variables, input, and type conversion \\ ACTIVITY & 1.25) \end{tabular} 0/5 main.py Load default template... \( \begin{array}{ll}1 & \left.\text { user_int }=\text { int(input }\left(\text { 'Enter integer }(32-126): \backslash n^{\prime} ight) ight) \\ 2 & \left.\text { userflo = float(input }\left(' \text { Enter float: } \backslash n^{\prime} ight) ight) \\ 3 & \left.\text { userchar = input(input('Enter character: } \backslash n^{\prime} ight) \\ 4 & \left.\text { userstr = input(input('Enter string: } \backslash n^{\prime} ight) \\ 5 & \\ 6 & \left.\left.\text { print(user_int, userflor, userchar, userstr, ' } n^{\prime} ight) ight) \\ 7 & \\ 8 & \end{array} \) Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
