Which variable can be placed below and why?Beginner

counter = 0

def update():
  new_counter = counter + 1
  return new_counter

A variable is nothing more then a reserved storage box for data. It’s like when you make a new contact in your phone each name can vary. So that’s a variable. Then you enter a number.
Can you answer your own question now? If not I be happy to give more explanation onto it. :3

If this is a challenge mind posting a link?

1 Like

Bro you defined a function so you have to call the function before the program run try update() to call

1 Like