Question: a ) What will the Python script ( given below ) output to the screen when it runs? Provide brief explanation about your answer. b

a) What will the Python script (given below) output to the screen when it runs? Provide brief explanation about your answer. b) What should be the initial value of variable a in the script to make this Python script print 200 as output? Include any other changes you may need to make for accomplishing this result. #----Python script starts here---- a=11 c=0 while(a): if (a>7): c=c+a-1 a=a-1 else: pass print (c) #----Python script ends here----

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!