Python Newbie 2

To make your codes more beautiful and more readable, try to use below checker to scan your python codes. 1. mypy Mypy is an optional static type checker for Python. from typing import Union, Any, List, Optional, NoReturn, Dict, Tuple, Annotated, AnyStr def fib(n: int) -> Iterator[int]: a, b = 0, 1 while a < n: yield a a, b = b, a + b Repo here. Mypy supports reading configuration settings from a file....