Traceback (most recent call last):
File "python", line 8, in
TypeError: can't multiply sequence by non-int of type 'float'

I exxpect it to say I am correct land move me to the next level.

# Reassign meal on line 7!

meal =44,5 
tax = 0.0675
tip = 0.15



What Re-assignment means?

suppose ..

x = 1

It can be changed(re-assigned) like this...

x = x + 3

It means I'm adding 3 to its past value and saving back(reassigning) to it.

In same way you have to add..past value of meal and tax on meal (meal * tax) and add back to it.


oh ok thanks so much it worked


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.