Cheatsheet: Data Structures
    Array / List
    Map / Dict
    Set
    Tuple
    Struct / Data Class
    Stacks
    Other Data Structures
    Collection Conversions
Cheatsheet: Control Flow
Cheatsheet: Class

Polyglot CheatSheet - Testing

Updated: 2022-04-04

Python

Use unittest Unit testing framework. http://docs.python.org/library/unittest.html

Use assert for unit testing.

>>> a = 1
>>> assert a == 1
>>> assert a != 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError