Answer to Question #47990 in Python for ayomide

Question #47990
How do I write a program to produce output like the following:-

Cost of 1st item
Enter pounds > 1
Enter pence > 45

Cost input for 1st item is 1.45
1
Expert's answer
2014-10-21T00:51:21-0400
#!/usr/bin/env python3
print("Cost of 1st item")
pounds = input("Enter pounds > ")
pence = input("Enter pence > ")
print( "Cost input for 1st item is {0}.{1}".format( pounds, pence ) )


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS