What is the lifetime of a local variable in Python?
(A)
Until the program ends
(B)
Until the function it is defined in ends
(C)
Throughout the entire program
(D)
Until explicitly deleted using del keyword
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles