Generation

generate functionTue, 25 Apr 2023

Leer un número entero positivo e imprima la cantidad total de dígitos diferentes existentes.

def diferentes(n): total = [] for i in str(n): if i not in total: total.append(i) return len(total)

Want to kickstart your project?Use the new AI Studio to create your code