Question: 4. Write a Python code that prompts the user to enter his or her height and assigns the user's input to a variable named height.
4. Write a Python code that prompts the user to enter his or her height and assigns the user's input to a variable named height. 5. Write assignment statements that perform the following operations with the variables a, b, and c : i) Adds 10 to a and assigns the result to b ii) Multiplies b times 8 and assigns the result to a iii) Divides a by 3.14 and assigns the result to b iv) Subtracts 7 from b and assigns the result to a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
