Help: Writing a program

Joined
Jan 27, 2010
Messages
1
Reaction score
0
I am learning Python now. It is too complicated. I started the file that i did but it crashed. Can you show me how to do it?

Write a Python program to convert a given weight from kg to pound and to gal and to liter.

1kg=0.2642gal=2.205lb
1gal = 3.785liter

It means when i open the file using python. I just put a number and hit enter. I will get something like:
123kg=.....lb=....gal=....l

Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,122
Latest member
VinayKumarNevatia_
Top