1

Suggestions: Most of your lambdas are unnecessary wrappers around perfectly fine functions, so I'd just use the latter instead. The list in (*list(map(...))) is unnecessary, just unpack the iterable that map gets you. There's nothing else in your code, so importing it doesn't give you anything, so you'd just run the script, so if __name__ == '__main__': is ...


Only top voted, non community-wiki answers of a minimum length are eligible