Hey everyone, I'm a new python dev and i'm trying to familiarize myself with functions. for my first functions project, I tried making a miles to km converter, but I'm running into an error. can someone tell me what I did wrong and how to fix it. Thanks.
@mhs_mhs123 OK, it seems like that "and" operator is messing you up again. Try changing the go_waterfall and go_tunnel event into two separate events. What's happening is you are trying to call a variable that has no definition yet.
Another thing you could try is defining all the variables as "no" at the beginning of the program, so that they default to that if they haven't been changed.