Vlad Bezden

Results 6 issues of Vlad Bezden

I have a database with multiple columns as a primary key. Is there any way to specify multiple columns as a key?

Hi, In your example code/chapter3/solutions/percentile_score.py you have following code: ```python if percentile == 0: return data[0] elif percentile == 100: return data[-1] ``` so for percentile == 0 it will...

On page 96 line ``` # Put a None at the beginning so output[1] is the output for 1 output = [None] + head(power_fizz(), 1000) ``` type checker gives following...

On page 88 specify typing for Callable ``` from typing import Iterable, Callable def for_each(xs: Iterable[int], do: Callable[[Iterable[int]], None]) -> None: it = iter(xs) try: while True: do(next(it)) except StopIteration:...

On page 70 there is: ``` from typing import Dict, NamedTuple, Optional class Node(NamedTuple): count: int cla55: Optional[int] = None # None if it's a merged node children: Dict[str, 'Node']...

In chapter 4 (Euclid's Solution) example: ``` def primes_up_to(n: int) -> List[int]: # 0 1 2, ..., n candidates = [False, False] + [True] * (n - 1) for p...