Afternoon. I have completed Learn Python The Hard Way all the way up to classes but I decided before continuing that I should try to cement the skills I have. But I'm already really struggling with the elementary tasks here (Using all the hints, looking up how things work). So, if I do come upon a solution I want to put it in the discuss section to see if any improvements could be made to it.
Here is my solution to "Three words".
def checkio(words):
count = 0
words = words.split()
for i in words:
if i.isalpha():
count += 1
print count
if count >= 3:
break
else:
count = 0
print count
if count >= 3:
return True
else:
return False
Created at: Feb. 23, 2015, 11:05 a.m.; Updated at: Nov. 12, 2018, 3:43 p.m.