class Stack():
def __init__(self):
self.items = []
here ‘items’ is called a class variable but is it not an instance variable. Please correct me if I am wrong but anything under a method is an instance variable.
Type your question above this line.
Course: https://www.educative.io/collection/10370001/5474278013140992
Lesson: https://www.educative.io/collection/page/10370001/5474278013140992/5212270311243776