Question: I ' m stuck. 1 8 . Increment the Variable One of the main goals in the function next is to increment the variable VAR.
Im stuck.
Increment the Variable
One of the main goals in the function next is to increment the variable VAR. Due to that, you will need to
Add a global statement to indicate VAR is not local
Add to VAR and reassign this value to VAR
When you do that correctly, you should be able to witness next change the value of VAR as follows:
codio@mikepanther:~workspace$exercise$ python
import globb
globb.VAR
globb.next
globb.VAR
Check your answer before you continue to the next step.
Check the Global Variable
You may run this test multiple times.
I understand the global variable and need to call if from within the local but keep getting various errors. Also not following the globb.VAR in the local.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
