<filename>src/basics.py
from collections import namedtuple
from typing import Tuple
from enum import Enum

def main():
    list = [1, 2, 3, 4, 5]
    dict = {"one": 1, "two": 2}
    sets = set([2, 3, 4, 2])
    bool = True or False
    str = "nim_is_awesome"
    integer: int = 1
    floats: float = 1.2
    PI = 3.14

    Point: Tuple[int, int] = namedtuple("Point", ["x", "y"])
    p = Point(x=11, y=22)

    class Person:
        def __init__(self, name: str, age: int):
            self.name: str = name
            self.age: str = age

    person = Person(name="James", age=32)

    class Color(Enum):
        RED = 1
        GREEN = 2

if __name__ == "__main__":
    main()

<filename>src/basics.py
from collections import namedtuple
from typing import Tuple
from enum import Enum

def main():
    list = [1, 2, 3, 4, 5]
    dict = {"one": 1, "two": 2}
    sets = set([2, 3, 4, 2])
    bool = True or False
    str = "nim_is_awesome"
    integer: int = 1
    floats: float = 1.2
    PI = 3.14

    Point: Tuple[int, int] = namedtuple("Point", ["x", "y"])
    p = Point(x=11, y=22)

    class Person:
        def __init__(self, name: str, age: int):
            self.name: str = name
            self.age: str = age

    person = Person(name="James", age=32)

    class Color(Enum):
        RED = 1
        GREEN = 2

if __name__ == "__main__":
    main()
