Where's the error


#1

When I use print in the same line where I passed the value to the trip cost then it gives no error and print what’s expected but if I use another line like the one below it gives unexpected result.


#2

Where is the return value from your function call going? Have you tried printing that function call?

print function

gives the output your screenshot shows… An identifier stub showing the address in RAM where the function resides.

print function(arg)

gives the return value of the function call.


#3

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