avatarJ3

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2203

Abstract

iv id="447b"><pre><span class="hljs-attr">Enter the Year:</span> <span class="hljs-number">1963</span></pre></div><p id="cb2b">What is the mouth?</p><div id="14b8"><pre><span class="hljs-variable">month</span> = <span class="hljs-function"><span class="hljs-title">int</span>(<span class="hljs-title">input</span>(<span class="hljs-string">"Enter the Month: "</span>))</span></pre></div><div id="e52b"><pre><span class="hljs-attribute">Enter</span> the Month: <span class="hljs-number">1</span></pre></div><p id="183d">Now let’s proceed to the calculation:</p><figure id="3a3d"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*7Oia0sKfeZcAu5lMJoo7dA.png"><figcaption></figcaption></figure><div id="bffa"><pre>print(<span class="hljs-comment">"I hope you enjoyed that lecture o/\nIf you find this post helpful, please click the applause button and subscribe to the page for more articles like this one.\nHave a Nice Day!"</span>)</pre></div><div id="fec5"><pre>I hope you enjoyed that lecture o/ If you find this <span class="hljs-built_in">post</span> helpful, please click <span class="hljs-keyword">the</span> applause button <span class="hljs-keyword">and</span> subscribe <span class="hljs-built_in">to</span> <span class="hljs-keyword">the</span> page <span class="hljs-keyword">for</span> more articles like this <span class="hljs-literal">one</span>. Have <span class="hljs-keyword">a</span> Nice Day!</pre></div><p id="7421">Until next time!</p><p id="2e52">👉Jupiter notebook <a href="https://drive.google.com/drive/folders/1amEtEi7vFGPXfqKUIx_DWnNImiJFdlFY?usp=sharing">link</a> :)</p><p id="4d83">👉or collab <a href="https://drive.google.com/file/d/1RW8VaODS8-GUsTQwqKkM-ZxzQT92DBd-/view?usp=sharing">link</a></p><p id="dcf4">👉<a href="https://github.com/giljr/my_jupyter_notebook">git</a></p><h1 id="4ddc">Credits & References</h1><p id="b461"><a href="https://en.wikipedia.org/wiki/Leap_year">Leap year</a> by wikipedia.org</p><p id="ac11"><a href="https://www.timeanddate.com/date/leapyear.html">What Is a Leap Year?</a> by timeanddate.com</p><p id="1d4d">Book: <a href="https://www.amazon.com.br/gp/product/B088RLQ4H9/ref=dbs_a_def_rwt_hsch_vapi_tkin_p1_i0">The Ult

Options

imate Crash Course On Python That Will Have You Programming In Just 7 Days!</a> by Oliver R. Simpson</p><p id="7cb4"><a href="https://super.abril.com.br/blog/oraculo/quem-determinou-quais-meses-teriam-30-ou-31-dias/">Quem determinou quais meses teriam 30 ou 31 dias?</a> Super Interessante Brazilian Magazine</p><h1 id="82db">Related Posts</h1><p id="89ec"><b>00</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/lambda-in-python-421b0c18e825"><b>Lambda in Python </b></a>— Python Lambda Desmistification</p><p id="51cf"><b>01</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/send-emails-using-python-jupyter-notebook-94d14a5a5655"><b>Send Email in Python</b></a> — Using Jupyter Notebook — How To Send Gmail In Python</p><p id="a113"><b>02</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/automate-your-email-marketing-with-python-f0d68234b789"><b>Automate Your Email With Python & Outlook</b></a><b> </b>— How To Create An Email Trigger System in Python</p><p id="ee15"><b>03</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/manipulating-files-with-python-3f9a781287e9"><b>Manipulating Files With Python</b></a> — Manage Your Lovely Photos With Python!</p><p id="c961"><b>04</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/pandas-dataframe-advanced-48f83a5b097f"><b>Pandas DataFrame Advanced </b></a>— A Complete Notebook Review</p><p id="2995"><b>05</b>#Episode#PurePythonSeries — Is This Leap Year? Python Calendar— How To Calculate If The Year Is Leap Year and How Many Days Are In The Month(this one)</p><p id="1146"><b>06</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/list-comprehension-in-python-c22c4b0a6a8a"><b>List Comprehension In Python </b></a>— Locked-in Secrets About List Comprehension</p><p id="53f6"><b>07</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/graphs-in-python-b7d243737b77"><b>Graphs — In Python </b></a>— Extremely Simple Algorithms in Python</p><p id="c662"><b>08</b>#Episode#PurePythonSeries — <a href="https://readmedium.com/decorator-in-python-62c00f7e818"><b>Decorator in Python </b></a>— How To Simplifying Your Code And Boost Your Function</p></article></body>

Is This Leap Year? Python Calendar

How To Calculate If The Year Is Leap Year and How Many Days Are In The Month #PurePythonSeries — Episode #05

Fig 1. Image from What Is a Leap Year? By timeanddate.com

Who determined which months would have 30 or 31 days?

A leap year (also known as an intercalary year or bissextile year) is a calendar year that contains an additional day.

A year that is not a leap year is a common year.

In the Gregorian calendar, each leap year has 366 days instead of 365, by extending February to 29 days rather than the common 28. These extra days occur in each year which is an integer multiple of 4 (except for years evenly divisible by 100, but not by 400). The leap year of 366 days has 52 weeks and two days, hence the year following a leap year will start later by two days of the week. Wikipedia

diagram (draw.io) borrowed from 100 Days of Code: The Complete Python Pro Bootcamp for 2022 Course as taught by Dr. Angela Yu

Why does February 29th only appear on the calendar every 4 years?

It was the Egyptians of Alexandria who, more than 2,200 years ago, had the idea of, every four years, adding an extra day to the calendar, to make up for the remaining six hours (a rounding off from 5:48:46). It’s a perfect day, which every four years appears on the sheet as the 29th of February

what is the year?

current_year = int(input("Enter the Year: "))
Enter the Year: 1963

What is the mouth?

month = int(input("Enter the Month: "))
Enter the Month: 1

Now let’s proceed to the calculation:

print("I hope you enjoyed that lecture o/\nIf you find this post helpful, please click the applause button and subscribe to the page for more articles like this one.\nHave a Nice Day!")
I hope you enjoyed that lecture o/
If you find this post helpful, please click the applause button and subscribe to the page for more articles like this one.
Have a Nice Day!

Until next time!

👉Jupiter notebook link :)

👉or collab link

👉git

Credits & References

Leap year by wikipedia.org

What Is a Leap Year? by timeanddate.com

Book: The Ultimate Crash Course On Python That Will Have You Programming In Just 7 Days! by Oliver R. Simpson

Quem determinou quais meses teriam 30 ou 31 dias? Super Interessante Brazilian Magazine

Related Posts

00#Episode#PurePythonSeries — Lambda in Python — Python Lambda Desmistification

01#Episode#PurePythonSeries — Send Email in Python — Using Jupyter Notebook — How To Send Gmail In Python

02#Episode#PurePythonSeries — Automate Your Email With Python & Outlook — How To Create An Email Trigger System in Python

03#Episode#PurePythonSeries — Manipulating Files With Python — Manage Your Lovely Photos With Python!

04#Episode#PurePythonSeries — Pandas DataFrame Advanced — A Complete Notebook Review

05#Episode#PurePythonSeries — Is This Leap Year? Python Calendar— How To Calculate If The Year Is Leap Year and How Many Days Are In The Month(this one)

06#Episode#PurePythonSeries — List Comprehension In Python — Locked-in Secrets About List Comprehension

07#Episode#PurePythonSeries — Graphs — In Python — Extremely Simple Algorithms in Python

08#Episode#PurePythonSeries — Decorator in Python — How To Simplifying Your Code And Boost Your Function

Leap Year
Python3
How To
Gregorian Calendar
Code Review
Recommended from ReadMedium