Sarah
2015-09-14 17:20:55 UTC
Hi
What's wrong with the following code?
def main()
lunch = int(input('How many hours did you eat?'))
cost = float(input('Enter the hourly cost: '))
gross_cost = lunch * cost
print('cost:$', format(cost, '.2f'), sep='')
main()
I get the error File "<Stdin>", line 6
Thanks, Sarah
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
What's wrong with the following code?
def main()
lunch = int(input('How many hours did you eat?'))
cost = float(input('Enter the hourly cost: '))
gross_cost = lunch * cost
print('cost:$', format(cost, '.2f'), sep='')
main()
I get the error File "<Stdin>", line 6
Thanks, Sarah
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor