Created
March 24, 2017 16:29
-
-
Save souvikhaldar/d3ada831eeb0fc34fb9219f7c6281517 to your computer and use it in GitHub Desktop.
finding length using recursion created by souvikhaldar - https://repl.it/Gcri/1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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