Light Mode
Dark Mode
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

Created: Jan. 29, 2021, 4:16 p.m.
Updated: Feb. 7, 2021, 8:26 a.m.
0
3
User avatar
ricky.kabo