Skip to content

Instantly share code, notes, and snippets.

@souvikhaldar
Created March 24, 2017 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souvikhaldar/d3ada831eeb0fc34fb9219f7c6281517 to your computer and use it in GitHub Desktop.
Save souvikhaldar/d3ada831eeb0fc34fb9219f7c6281517 to your computer and use it in GitHub Desktop.
finding length using recursion created by souvikhaldar - https://repl.it/Gcri/1
def Length(l):
if l==[]:
return (0)
else:
return(1 + Length(l[1:]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment