Liu Zuo Lin
Jul 29, 2022

--

Congrats on being able to solve all 4 questions - Really interesting way to solve the first one that I've not thought of myself!

My original recursive solution for q1 was:

def f(lis): return lis[0] if len(lis)==1 else lis[0]*f(lis[1:])

--

--

Liu Zuo Lin
Liu Zuo Lin

Written by Liu Zuo Lin

SWE @ Meta | [Ebook] 101 Things I Never Knew About Python: https://payhip.com/b/vywcf

No responses yet