Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
Lab_I_1_25_11_2020
Hh
Your mom
quiz3
😚😚😚
H
codigo1
PyQP
Celcius to Fahrenheit
Python3 - product lists