<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi! <div><br></div><div>I've been working on this question for a long time and for some reason it's just not clicking. </div><div><br></div><div>I'm not sure if my loop for the question is the right one, or if I'm even on the right track.</div><div><br></div><div>We're supposed to make a program that counts the number of days into the year it is if you input a date. Not including leap years. </div><div><br></div><div>This is what I have so far:</div><div><br></div><div><div>months = 'January, February, March, April, May, June, July, August, September, October, November, December'</div><div>daysPerMonth = '31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31'</div><div>                             </div><div>#shorterMonths = 'February, April, June, September, Novmeber'</div><div>#longerMonths = 'January, March, May, July, August, October, December'</div><div><br></div><div>month = raw_input('Enter the month: ')</div><div>day = raw_input('Enter the day: ')</div><div><br></div><div>for x in month:</div><div>        whichMonth = months.index(x)</div><div>        monthNumber = daysPerMonth[whichMonth]</div><div>        dayYear.append(monthNumber)</div></div><div><br></div><div>I was hoping to make a loop that would check which month it is and compare it to the second list I made with the number of days in that month. I don't know if I've made that clear to the program or not. Either way, I feel pretty lost at the moment. </div><div><br></div><div>Any help would do! </div><div><br></div><div>Thanks!</div>                                    </div></body>
</html>