Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Papufu

  • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    declare it as int or float?

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

    x = float(x) ?

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

    what language?

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

    python

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

    you can try it

  6. Papufu
    • 2 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
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    print("Minimum payment:",x)?

  9. Papufu
    • 2 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.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.