• Solve All Upper I -- Error while correct

 

Hi m8s.

I completed the mission "all upper". but when i check my code, error shown.

I suppose the """""correct"""" answer is another code but, with mine, all works with a boolean True.

-Code(excluding the code of the mission):

x = text.isupper()
if x == True:
return True
elif text == '':
return True
else:
return False

return False

--Output in checkio console:

Example:
True
Coding complete? Click 'Check' to earn cool rewards!

--Output in pycharm:

Example:
True
Coding complete? Click 'Check' to earn cool rewards!

Process finished with exit code 0

.