PROGRAM TO PRINT ONLY THE 1ST MULTILPLE OF A NUMBER IN PYTHON


def f1st_multiple(L,x):
    for x in L:
        if x % i == 0:
            fmul = x
            break
    if x % i != 0:
        fmul = -1
    return fmul 

Leave a Reply