Posted by: Pdfprep
Post Date: November 12, 2020
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
Leave a Reply