Hi again! Been playing around with functions and decided to make my own and wanted to make a program that stated food waste in pounds with the data coming from the user but I'm having trouble getting my formatters to be seen as numbers from the users and not a string as it states. Here's the code I wrote.
This is as far as I got before I was reciving an error. Any help would be appreciated :)
Thanks,
Pythonerous
1 2 3 4 5 6 |
def food_waste(cold_food, hot_food): print "Based on the data given, your total Cold Waste is %d pounds." % cold_food print "Data also shows that Hot Waste accumulated to %d pounds." % hot_food print "The total amount of food wasted today was %d pounds." % hot_food + cold_food food_waste( raw_input ( "Place Cold Food Waste In Pounds Here. > " ), raw_input ( "Place Hot Food Waste In Pounds Here. > " )) |
Thanks,
Pythonerous