Light Mode
Dark Mode
Digits Multiplication, I can't fix assertion error

Here's my code

def checkio(number: int) -> int:
    s = str(number)
    lst = []   
    b = 1
    for x in s:
        y = int(x)
        if y == 0:
            continue
        b = b * y

    return print (b)

When i'm using def. like checkio(1234,)checkio(3456) on python this code works okay but when i hit check, result always stuck at first assert line

Created: Jan. 28, 2020, 8:23 a.m.
Updated: Jan. 28, 2020, 9:22 a.m.
0
4
User avatar
jsw00827