##Example 1 minutes = int(input("How many minutes of air time were used? ")) texts = int(input("How many texts were sent? ")) if minutes<=60 and texts<=40: tax =(10.72)*.07 bill = 10.72+tax bill = '{:,.2f}'.format(bill) print("Your monthly bill is $",bill) elif minutes<=60 and texts >40: bill = (((texts*.1)-4)+10.72)*1.07 bill = '{:,.2f}'.format(bill) print("Your monthly bill is $",bill) elif minutes >60 and texts <=40: bill = (10.72+(minutes*.2)-12)*1.07 bill = '{:,.2f}'.format(bill) print("Your monthly bill is $",bill) else: bill = (((texts *.1) -4)+10.72+(minutes *.2)-12) *1.07 bill = '{:,.2f}'.format(bill) print("Your monthly bill is $",bill) ######################### ##Example 2 minutes = int(input("How many minutes of air time were used? ")) texts = int(input("How many texts were sent? ")) if minutes<=60 and texts<=40: bill1 =(10+0.72)*1.07 bill1 = '{:,.2f}'.format(bill1) print("Your monthly bill is $" + str(bill1)) else: bill2 = (10 + ((minutes-60)*0.20) + ((texts-40)*0.10) + 0.72) * 1.07 bill2 = '{:,.2f}'.format(bill2) print("Your monthly bill is $" + str(bill2)) ######################### ##Example 3 AT = int( input("How many minutes of air time were used? ") ) TXT = int( input("How many texts were sent? ") ) if AT > 60: ATCost = (AT-60) * .2 else: ATCost = 0 if TXT > 40: TXTCost = (TXT-40) * .1 else: TXTCost = 0 Bill = (ATCost + TXTCost + 10 + .72) * 1.07 Bill = '{:,.2f}'.format(Bill) print("Your monthly bill is $",Bill, )