Skip to content

Instantly share code, notes, and snippets.

@austa
Created December 13, 2013 18:07
Show Gist options
  • Save austa/7948531 to your computer and use it in GitHub Desktop.
Save austa/7948531 to your computer and use it in GitHub Desktop.
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