Sintax error in while

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


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.