Class Variables in Python

Class variables are variables that are shared among all instances of a class. They are defined within a class but outside any instance…