#!/urs/local/bin/python3
# Python challenge - 15
# http://www.pythonchallenge.com/pc/return/cat.html
# http://www.pythonchallenge.com/pc/return/uzi.html

import calendar


def main():
    '''
    Hint: whom? he ain't the youngest, he is the second
    todo: buy flowers for tomorrow
    January 26th (a Monday) is circled on a calendar
    Year shows 1XX6 and is a leap year
    '''
    valid_years = []
    for y in range(1006, 1996, 10):
        # Check if leap year and January 26th was a Monday (0)
        if calendar.isleap(y) and calendar.weekday(y, 1, 26) == 0:
            # print(y)
            valid_years.append(y)

    print(valid_years)  # [1176, 1356, 1576, 1756, 1976], Not youngest so 1756
    # Mozart born on January 27, 1756

    return 0

# Keyword: mozart


if __name__ == '__main__':
    main()

@@ -1,14 +1,14 @@
 #!/u
-r
 s
+r
 /local/b
@@ -27,17 +27,17 @@
  Python 
-c
+C
 hallenge
@@ -145,16 +145,67 @@
 uzi.html
+%0A# Username: huge; Password: file%0A# Keyword: mozart
 %0A%0Aimport
@@ -804,35 +804,16 @@
 turn 0%0A%0A
-# Keyword: mozart%0A%0A
 %0Aif __na

Refactor code