Vidyalelo
Python · Q61

Classes and Objects in Python

Programming · Python · question 61

Q61

How can you create a static variable in a Python class?

A.
By defining a variable within the class but outside any method
Answer
B.
By using the static keyword
C.
By using the class keyword
D.
By using the variable keyword

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board