How to give own inputs


#1

What if i want to give my own inputs. i tried like this
Check if my code is totally wrong

Error is :


#2

last line, trip_cost should be a function to call the function you need to use parentheses:

trip_cost()

between the parentheses supply arguments to satisfy the parameters

when using raw_input(), and the user needs to input a number don't forget to cast the number to integer (raw_input stores the result as string)


#3

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