Saturday, 18 April 2020

python find length of stack

class Stack:
    def __init__(self):
        self.stackList = [1,2,3]

stackObject = Stack()
print(len(stackObject.stackList))

No comments:

Post a Comment

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...