Format a Purchase Message

Write format_purchase_message(name, item, price). Return a sentence in this exact format: Name bought a item for Rs. 10.56. Show price with exactly two digits after the decimal point.

Examples

  • ["Ram","pen",10.56]"Ram bought a pen for Rs. 10.56."

Your solution

Python

Results

Python starts when you run or submit this challenge.

Back to Lesson