Last active
December 27, 2015 11:42
-
-
Save ozgurkaracam/8184316b2f9df2ebf880 to your computer and use it in GitHub Desktop.
Özyineli fonksiyonla palindrom kontrolü.
This file contains 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
#python 3.5.x | |
def palind(kelime): | |
kelime=list(kelime) | |
if len(kelime)>1: | |
if kelime.pop(0)!=kelime.pop(): | |
return False | |
else: | |
return palind(kelime) | |
else: | |
return True | |
print (palind(input("Kelime giriniz."))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment