You are viewing a single comment's thread. Return to all comments →
try this: if (total+0.5 > total_int +1): total_int+=1 print("The total meal cost is %d dollars." %total_int) else : print("The total meal cost is %d dollars." %total_int)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
try this: if (total+0.5 > total_int +1): total_int+=1 print("The total meal cost is %d dollars." %total_int) else : print("The total meal cost is %d dollars." %total_int)