def ranger(lo, hi, step=1):
  if (step < 1) or (lo > hi): return []
  return [lo, *ranger(lo + step,  hi, step)]
    
print(ranger(0, 10, 2))    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: