Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
hackerss
hackerss

Posted on

Python Validar si un ao es mltiplo de 3


def validar_multiplo_3(numero):
    """
    Funcion que valida si un numero es multiplo de 3
    :param numero:
    :return:
    """
    if numero % 3 == 0:
        return True
    else:
        return False

print(validar_multiplo_3(9))
print(validar_multiplo_3(10))
Enter fullscreen mode Exit fullscreen mode

Top comments (0)