def funcion(): n=int(input("Digite indice: ") while n>=0: print ("*"*n) n=n-1 funcion()
look at this line:
n=int(input("Digite indice: ")
pay particular close attention to the parentheses, also, check the indent of your code
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.