This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
yes its very simple
too complicated...
in python,by default all the variables are of int type....therefore only whole number part is considered in the execution....therefore answer is 52+15+7=74
I thought python adds all the amounts first Can somebody check for me?
simply add all value there and get the result
appetizers=52.75 ; dessert=15.50 ;
meal = dessert + appetizers = 52.75 + 15.50 = 68.25 ;
tip = 7 ;
total_cost = meal + tip = 68.25 + 7 = 75.25 ;
So, The program will print the result 75.25. (Ans.)
wow, you really have to show your solution.... did you even used a scratch for solving?
appetizers=52.75 and dessert=15.50 and tip=7
meal=dessert+appetizers=15.50+52.75=68.25
total_cost=meal+tip=68.25+7=75.25
print total cost will print the value stored in total cost which is 7 5 . 2 5 , so this program will print 7 5 . 2 5
Problem Loading...
Note Loading...
Set Loading...
simple