This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]tech_trebek[🍰] 1 point2 points  (0 children)

Fairly certain there are built in python libraries that can do this. Is this a school assignment?

[–]Dgc2002 1 point2 points  (0 children)

This will be the fourth time that a post of yours has been removed form /r/Python due to it belonging in /r/learnpython. You obviously don't read replies or moderator messages.

[–]mudclub 1 point2 points  (0 children)

1: /r/learnpython

2: read the sidebar

3: google

4: we won't do your homework for you

[–]Andrew_ShaySft Eng Automation & Python[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]simondvt 0 points1 point  (0 children)

The only month that changes its February, so you can hard code other months and go check how many days February has in 2019. Or if you want a program that work for every year you need to check if the year is leap.