Sintax error in while


#1
def funcion():
       n=int(input("Digite indice: ")
       while n>=0:
      print ("*"*n)
      n=n-1
funcion()

#2

look at this line:

n=int(input("Digite indice: ")

pay particular close attention to the parentheses, also, check the indent of your code


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.