76 412
Assignments Done
Successfully Done
In May 2019

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions