Which statement is correct about Python variables once they are created?

Posted by: Pdfprep Category: JN0-220 Tags: , ,

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

Your email address will not be published.