You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lista = list(str(numero))
longi = len(lista)
num = 0
for j in range(len(lista)):
num = num + (int(lista[j])) ** (longi)
if num == numero:
return print("Número de armstrong")
else:
return print("No es un número de armstrong")
armstrong(numero)
The text was updated successfully, but these errors were encountered:
numero = int(input("Digite un número: "))
def armstrong(numero):
armstrong(numero)
The text was updated successfully, but these errors were encountered: