Hi, I run code in pycharm
and that's my code:
def checkio(words: str) -> bool:
count=0
array_of_w=words.split()
for word in array_of_w:
print(word)
if word.isalpha():
count+=1
else:
count = 0
if count >=3:
return True
else:
return False
I get an error:
Your result:false
one two 3 four five six 7 eight 9 ten eleven 12
Right result:true
Fail:undefined("one two 3 four five six 7 eight 9 ten eleven 12")
also among my asserts there isn't string "
"one two 3 four five six 7 eight 9 ten eleven 12"
There are only:
* "Hello World hello"
* "He is 123 man"
* "1 2 3 4"
* "bla bla bla bla"
* "Hi"
There is not string like in the error
Created at: 2020/07/06 18:03; Updated at: 2020/12/12 12:30
The question is resolved.