Just some simple examples when learning Python. The website is https://runestone.academy/ns/books/published/pythonds/index.html. The book Problem Solving with Algorithms and Data Structures using Python.
- Fraction class
- Inheritance: LogicGate.
- MSDies class: can compare == and <.
- FindMin: two methods to find the minimun in a list.
- Stack: the definition of stack by users.
- PythonStack: the stack contrusted by Python and include a method to reverse a string.
- ParenChecker: use stack to compare balance of parentheses.
- ParenChecker: use stack to compare balance of suqare, curly and round parentheses, i.e. [{(.