Created
March 27, 2011 20:36
-
-
Save semihozkoroglu/889583 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
def en_uzun_kelime(cumle): | |
liste = cumle.split() | |
uzunluk = map(lambda x:len(x),liste) #Burasi liste donmektedir. | |
print liste[uzunluk.index(max(uzunluk))] #listenin en uzununun indexini listede bul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment