Typing/Lesson 26 of 27

Code

Python snippets

Indentation is meaningful in Python; it is filled in after each Enter.

0

WPM

100%

Accuracy

0%

Progress

class Stack:↵
def __init__(self):↵
self.items = []↵
↵
def push(self, item):↵
self.items.append(item)↵
↵
def pop(self):↵
return self.items.pop()

c: Left middle