Python Forum
I'm getting an error, please help! thanks
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm getting an error, please help! thanks
#2
If you want to reassign the 'starting_crate_num' variable, you need to specify that you want to use the variable from outside the function.
You do this by writing the variable name in the parentheses.
starting_crate_num = 0

def start(starting_crate_num):
    starting_crate_num += 1
Reply


Messages In This Thread
RE: I'm getting an error, please help! thanks - by CabbageMan - Jan-08-2020, 09:01 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020