Examveda

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

A. By defining a variable within the class but outside any method

B. By using the static keyword

C. By using the class keyword

D. By using the variable keyword

Answer: Option A


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python