[Tutor] NEWBIE- how to make a program continue

Robert Garber garber@centralcatholic.org
Wed, 20 Feb 2002 09:25:10 -0500


I am very NEW to programing. Here is my question. I have written a small program( with the help of teaching python in 24 hours) I added the year = input line it works well except i want it to countue doing what it does utill i tell it to stop. How do I do this?

below is the script i am using

def julian_leap (y) :
    if (y%4) == 0:
        return 1
    return 0
year = input ( " Type in a year:" )
if julian_leap (year):
    print year, "is leap"
else:
    print year, "is not a leap year"


Tahnks for ant help offered,
Robert