def checkio(text):
count=0
for x in text.split():
if x.isalpha():
count += 1
if count ==3:
return True
else:
return False
There is a problem in this code.It returned true before adding the last else statement when I passed ("Hello World hello") but when I added the the (else) it returned false and didn't work.
Can I know how to make it run properly and the reason for the problem?
Created at: 2019/12/28 12:59; Updated at: 2019/12/28 15:45