Question: Write a script which: 1. Uses the input function to get any number and store it in a variable named my_number 2. Create a

Write a script which: 1. Uses the input function to get any

 number and store it in a variable named my_number 2. Create a

Write a script which: 1. Uses the input function to get any number and store it in a variable named my_number 2. Create a new variable named calculation which equals my_number plus 9 3. Multiply calculation by 2 4. Subtract 4 from calculation 5. Divide calculation by 2 6. Subtract my number from calculation 7. Print calculation. This should match the output under Desired Output. Click Run to check your code Click Submit to subernit your code to your instructor Run 4 5 6 7 8 9 Redo 10 11 12 13 14 15 16 17 18 19 Save 1 #1. Ask users to enter any nurber 2 # assign it to the variable /my_number] Submit #2. Create a new variable called #/calculation that is equal to #/my_number/ plus 9- calculation my numberi 3. Multiply /calculation by 2 #4. Subtract 4 from /calculation/ 5. Divide /calculation by 2 6. Subtract /my_mber/ from #/calculation/ 7. Print the resulting /calculation/ Your Output: Desired Output: 7 # 2. Create a new variable called # /calculation/ that is equal to #/my_number/ plus 9 calculation = my_number+9 # 3. Multiply /calculation/ by 2 # 4. Subtract 4 from/calculation/ # 5. Divide /calculation/ by 2 # 6. Subtract/my_number/ from # /calculation/ # 7. Print the resulting /calculation/

Step by Step Solution

3.46 Rating (153 Votes )

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 Programming Questions!