Generation

generate functionThu, 13 Jul 2023

ingrese un numero impar ingresado por el usuario e imprimir tantos "#" como sea el numero

def print_hash(num): if num % 2 == 0: print("El numero debe ser impar") else: for i in range(num): print("#", end="") print_hash(5)

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