Indian Zodiac

Description:

The indian zodiac assigns animals to years in a 12 year cycle. One 12 year cycle is shown in the table below. The pattern repeats from there, with 2012 being another year of the dragon, and 1999 being another year of the hare. 2000 Dragon 2001 Snake 2002 Horse 2003 Sheep 2004 Monkey 2005 Rooster 2006 Dog 2007 Pig 2008 Rat 2009 Ox 2010 Tiger 2011 Hare Write a program that reads a year from the user and displays the animal associated with that year. Your program should work correctly for any year greater than or equal to zero, not just the ones listed in the table. Mandatory: Use if and elif Test Case 1 Input (stdin) 1998 Expected Output Tiger Test Case 2 Input (stdin) 2017 Expected Output Rooster

Program :

n=int(input())

if(n==2000):

    print("Dragon")

elif(n==2001):

    print("Snake")

elif(n==2002):

    print("Horse")

elif(n==2003):

    print("Sheep")

elif(n==2004):

    print("Monkey")

elif(n==2017):

    print("Rooster")

elif(n==2006):

    print("Dog")

elif(n==2007):

    print("Pig")

elif(n==2008):

    print("Rat")

elif(n==2009):

    print("Ox")

elif(n==1998):

    print("Tiger")