Quote:
Originally Posted by ntubski
I think they have some test that is comparing your source code against the expected solution, and they don't expect the extra parentheses around the 'char.isalpha()' expression. Remove them and it passes (but this makes no difference in terms of the Python interpreter). Another example, introducing a differently named variable also "fails":
Code:
c = char
if not c.isalpha():
final_message += c
|
Thanks, it worked. Never knew that 'not' worked without parenthesis.