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

Hi. if i am typing x= 5000 and y = 0.2, when i type it in (x)*(y) the programme is saying they cant multiply strings . how do I write it in such a way where it actually can multiply 5000*0.2. Problem 1 of task 1

OpenStudy (anonymous):

declare it as int or float?

OpenStudy (anonymous):

x = float(x) ?

OpenStudy (anonymous):

what language?

OpenStudy (anonymous):

python

OpenStudy (anonymous):

you can try it

OpenStudy (anonymous):

ok thank you! that part is done but now im stuck at the next....

OpenStudy (anonymous):

after i get the calculations for this. I want it to appear as . Minimum payment : calculated value. How do i do this part?

OpenStudy (anonymous):

print("Minimum payment:",x)?

OpenStudy (anonymous):

:D :D ;D thank you!!!!!!!!!

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!