Which statement is correct about Python variables once they are created?
Which statement is correct about Python variables once they are created?
A . A global variable can only be used by functions that are defined later
B . All variables in Python can be used by any function within the script
C . A global variable can be used by any function within the script
D . A global can only be used within the function that created it
Answer: A
Explanation:
Reference: https://stackoverflow.com/questions/423379/using-global-variables-in-a-function
Latest JN0-220 Practice Questions with 65 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments