Question: What will the value of the variable 'newheight' be after the following Python code is run? height = 1 0 0 bounce = 1 while

What will the value of the variable 'newheight' be after the following Python code is run?
height =100
bounce =1
while bounce <=3:
height = height *(3/5)
bounce +=1
newheight = height;
(Note: Round your answer to the nearest tenths place.)

Step by Step Solution

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!