I need help with writing a program that asks the user to enter distance in kilometers and then converts distance to miles
Missy_poo 0 Newbie Poster
Recommended Answers
Jump to Post— JasonHippy 739What have you got so far?
Jump to Post— jlm699 320As far as asking the user for input use either raw_input or input depending on your version of Python. Then the conversion is simple math. Just google "1 kilometer to miles" and it will give you the conversion rate.
All 8 Replies
JasonHippy 739 Practically a Master Poster
jlm699 320 Veteran Poster
Missy_poo 0 Newbie Poster
snippsat 661 Master Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
jlm699 320 Veteran Poster
zachabesh 5 Junior Poster
Stefano Mtangoo 455 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.