Question: # when you arrive at UofT you need 20 credits completed = 0 required = 20 credits_to_go = required - completed # but by Christmas

 # when you arrive at UofT you need 20 credits completed

# when you arrive at UofT you need 20 credits completed = 0 required = 20 credits_to_go = required - completed

# but by Christmas break, you've done # 5 courses completed = 5

# oops. They were 5 half-courses completed = completed / 2

# let's update the credits left to take credits_to_go = required - completed

# now by April, you have completed 5 full credits completed = 5

# by the end of 2nd year, you have done 5 more completed = completed + 5

I don't know why it stops updating the credits_to_go, it's stuck at 17.5 despite completed = 10.

Write code in Python 3.6 (drag lower right corner to resize code editor) Frames Objects # when you arrive at UofT you need 2e credits 2 completed 8 Global frame completed 10 3 required=20 4 credits-to-go (required completed) required 20 = - 5 credits_to_go17.5 6 # but by Christmas break, you've done 7 #5 courses 8 completed: 5 1 # oops. They were 5 half-courses 11 completed= completed /2 12 13 # let's update the credits left to take 14 credits to go = (required - completed) 15 16 # now by April, you have completed 5 full credits 17 completed -5 18 19 # by the end of 2nd year, you have done 5 more 20 completed completed 5 line that has just executed next line to execute Last

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