Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Palindrome using recursion
#python 3.5.2 def palindrome(s): if len(s) == 0: return 'YES' else: if(s[0] != s[-1]): return 'NO' return palindrome(s[1:-1]) s = 'MALAYALAM' print('Is ',s,' a palindrome : ',palindrome(s))
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
linked_lists_2+decisions
calucation
Python, filter emails using finditer()
calcultion
9th jan
If else if in 2 ways
Ex1
BMO1 Q1 1994
abc1
Mapping polish letters to german ones
stackse - search stackoverflow differently
Please log in to post a comment.