4 ms·
Norvig's approach of converting thoughts into a program is what you need to focus on. It is trivial to convert a list comprehension into a loop. In "When is Ch
by systemvoltage 5y ago
Norvig's approach of converting thoughts into a program is what you need to focus on. It is trivial to convert a list comprehension into a loop.
In "When is Cheryl's birthday?" [1], the way he converts the problem into functional units is insane. A couple of list comprehensions shouldn't scare you. Look above and beyond the details.
[1] https://github.com/norvig/pytudes/blob/main/ipynb/Cheryl.ipynb https://github.com/norvig/pytudes/blob/main/ipynb/Cheryl.ipy...