Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 20 Online
OpenStudy (anonymous):

Hi, guys! I need some help in Problem Set 1b. Everything works fine but...why do we need to set a user input variable 'initialBalance' equal to 'balance' ? My code didn't run correctly for quite a while since I didn't differentiate between the user input balance value and a variable named 'balance. They both had the same name. Here is what I had: balance = float(raw_input('Enter your balance:')) ..... ...... balance = balance

OpenStudy (e.mccormick):

If you change the ballance as you go, you may still need the intial for something else.

OpenStudy (anonymous):

Thanks. But what for can the initial balance be used? Any ideas?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!