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.
Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.