so i'm new to python and to coding in general and I have some difficulties about a use of loops. Here is the following code (prints are in french but I guess no translation is needed)
n = input ("Saissisez le nombre totale de bonnes notes obtenues")
n = int(n)
if n > 0:
    a = n+1
    b = n*a
    c = b/2
    print("Vous avez accumulez au total la somme de :", c, "€")
    print("Bien joué :)")
    input()
else:
    print("Vous n'avez pas rentré de nombre entiers correctes. Veuillez réessayer.")
    n = input ("Saissisez le nombre totale de bonnes notes obtenues")
So what I want to do is to create a loop for the "else" in order to ask the question again (the input) until a number superior to 0 is selectioned. It would be also cool if it doesn't "error" when I type a letter instead of a number for example.
Thanks in advance ! (and sorry for this stupid question) By the way the input in the "if" is to avoid the window to close instantly.
 
     
    