Light Mode
Dark Mode
Why run in sublime text ok but in checkio error

def checkio(data): Nu1 = 0 Nu2 = 0 Nu3 = 0 if len(data)>9:

    for i in data:
        if str(i).islower()== True:
            Nu1 += 1

        elif str(i).isupper()== True:
            Nu2 += 1

        elif str(i).isdigit() == True:
            Nu3 += 1

if Nu1 == 0 or Nu2 == 0 or Nu3 == 0:
        print('data ==>', 'False')
else:
        print('data ==>', 'True')

==> When I checked in sublime text with data: checkio("ULFFunH8ni") resutle==> True its ok , but checked in checkio not pass Error: AssertionError: 1st example<module>, 23 [Fail:checkio("ULFFunH8ni")Your result:False]

Created: Sept. 6, 2019, 5:12 a.m.
Updated: Sept. 12, 2019, 6:39 a.m.
0
10
User avatar
Van_Cong_Nguyen