Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- För att använda rekursion behöver man
- - ett basfall
- (stopp!)
- - ett rekursivt fall
- (anropa dig själv, på ett "mindre" problem)
- #Uppgift 4.
- def is_alphanumeric(s):
- if not str.isdigit(s) and not str.isalpha(s):
- print "False"
Add Comment
Please, Sign In to add comment