Oct-10-2017, 03:28 AM
(This post was last modified: Oct-10-2017, 03:29 AM by Beatenberg.)
What about with float? The full error is:
Error:Traceback (most recent call last):
File "F:\Computing\Term 3\Aussie Pass.py", line 67, in <module>
Pass_Show()
File "F:\Computing\Term 3\Aussie Pass.py", line 6, in Pass_Show
Pass_Package()
File "F:\Computing\Term 3\Aussie Pass.py", line 12, in Pass_Package
Pass_Discount()
File "F:\Computing\Term 3\Aussie Pass.py", line 18, in Pass_Discount
Pass_Cost()
File "F:\Computing\Term 3\Aussie Pass.py", line 33, in Pass_Cost
Pass_Cost()#If they do not enter any of those values they will be prompted to ask again
File "F:\Computing\Term 3\Aussie Pass.py", line 43, in Pass_Cost
Pass_Calculate(cost)
File "F:\Computing\Term 3\Aussie Pass.py", line 61, in Pass_Calculate
return cost[0] *cost[1] #Calculates the cost from their chosen package and discount e.g. 7 * 0.6
TypeError: can't multiply sequence by non-int of type 'float'