Nov-13-2018, 11:13 PM
That's because the decision variable is defined in the my_function function, and thus does not exist outside of it. You need to add
You should read a functions tutorial. There's a link to one in my signature, below.
return decision
to the end of your function, and then call it and assign it to x (x = my_function()
.You should read a functions tutorial. There's a link to one in my signature, below.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures