60 469
Assignments Done
98,1%
Successfully Done
In April 2018

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
Expert's answer
#!/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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions