Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Papufu

  • 3 years ago

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

  • This Question is Closed
  1. math_proof
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    declare it as int or float?

  2. Papufu
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    x = float(x) ?

  3. math_proof
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    what language?

  4. Papufu
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    python

  5. math_proof
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    you can try it

  6. Papufu
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  7. Papufu
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  8. math_proof
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    print("Minimum payment:",x)?

  9. Papufu
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  10. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy