<div dir="ltr">I've looked online but I'm confused - I need to keep it so that the following program limits the output to two decimal places since it deals in currency. <div><br></div><div>How do I incorporate that into my current code below? The textbook I'm using doesn't describe how to do that. Thanks in advance.</div>
<div><br></div><div><br></div><div><div>#Challenge Chapter 2</div><div>#Question number three</div><div><br></div><div>print("This program helps you to determine a tip amount of either")</div><div>print("15 or 20 percent.")</div>
<div><br></div><div>bill=float(input("\nHow much was your restaurant bill total (in dollars)? "))</div><div><br></div><div>fifteen=float(bill*0.15)</div><div>twenty=float(bill*0.2)</div><div><br></div><div>print("\n15% tip = $", fifteen)</div>
<div>print("\n20% tip = $", twenty)</div><div><br></div><div>input("\n\nPress the enter key to exit.")</div><div><br></div></div></div>