Created
December 13, 2013 18:07
-
-
Save austa/7948531 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
def uznk_bul(cumle): | |
bosString = "" | |
kelimeList = [] | |
uzunlukList = [] | |
for i in range(len(cumle)): | |
if cumle[i] != " ": | |
bosString += cumle[i] | |
if i == len(cumle) - 1: | |
kelimeList.append(bosString) | |
else: | |
kelimeList.append(bosString) | |
bosString = "" | |
for kelime in kelimeList: | |
uzunlukList.append(len(kelime)) | |
return uzunlukList | |
cumle = "ben bir python programiyim" | |
print uznk_bul(cumle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment