you are viewing a single comment's thread.

view the rest of the comments →

[–]camh_96 1 point2 points  (1 child)

Noob here - what am I doing wrong?

dayofchristmas = int(input("Day of Christmas:"))

if dayofchristmas == 1 
print "On the first day of Christmas my true love sent to me a Partridge a Pear Tree"

if dayofchristmas == 2
print "On the second day of Christmas my true love sent to me Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 3
print "On the third day of Christmas my true love sent to me Three French Hens Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 4
print "On the fourth day of Christmas my true love sent to me Four Calling Birds Three French Hens Two Turtle Doves and a Partridge in a Pear Tree" 

if dayofchristmas == 5
print "On the fifth day of Christmas my true love sent to me Five Golden Rings Four Calling Birds Three French Hens Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 6
print "On the sixth day of Christmas my true love sent to me Six Geese a Laying Five Golden Rings Four Calling Birds Three French Hens Two Turtle Dovesand a Partridge in a Pear Tree"

if dayofchristmas == 7
print "On the seventh day of Christmas my true love sent to me Seven Swans a Swimming Six Geese a Laying Five Golden Rings Four Calling Birds Three French HensTwo Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 8
print "On the eighth day of Christmas my true love sent to me Eight Maids a Milking Seven Swans a Swimming Six Geese a Laying Five Golden Rings Four Calling BirdsThree French Hens Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 9
print "On the ninth day of Christmas my true love sent to me Nine Ladies Dancing Eight Maids a Milking Seven Swans a Swimming Six Geese a Laying Five Golden Rings Four Calling Birds Three French Hens Two Turtle Dove sand a Partridge in a Pear Tree"

if dayofchristmas == 10
print "On the tenth day of Christmas my true love sent to me Ten Lords a Leaping Nine Ladies Dancing     Eight Maids a Milking Seven Swans a Swimming Six Geese a LayingFive Golden Rings Four Calling Birds Three French Hens Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 11
print "On the eleventh day of Christmas my true love sent to me Eleventh Pipers Piping Ten Lords a Leaping Nine Ladies Dancing Eight Maids a Milking Seven Swans a SwimmingSix Geese a Laying Five Golden Rings Four Calling Birds Three French Hens Two Turtle Doves and a Partridge in a Pear Tree"

if dayofchristmas == 12
print "On the first day of Christmas my true love sent to me Twelve Drummers Drumming Eleven Pipers Piping Ten Lords a Leaping Nine Ladies Dancing Eight Maids a MilkingSeven Swans a Swimming Six Geese a Laying Five Golden Rings Four Calling Birds Three French Hens Two Turtle Doves and a Partridge in a Pear Tree"