Juniper
JN0-220 · Question #3
Which statement is correct about Python variables once they are created?
The correct answer is C. A global variable can be used by any function within the script. See the full explanation below for the reasoning.
Question
Which statement is correct about Python variables once they are created?
Options
- AA global variable can only be used by functions that are defined later
- BAll variables in Python can be used by any function within the script
- CA global variable can be used by any function within the script
- DA global can only be used within the function that created it
How the community answered
(42 responses)- A7% (3)
- B17% (7)
- C71% (30)
- D5% (2)
Community Discussion
No community discussion yet for this question.