I tried it with Wolfram Alpha and google, referring to "[Fundamental Information Technology Engineer Examination] I wrote an algorithm for determining leap years in Python."

(Original post) [Fundamental Information Technology Engineer Examination] I wrote an algorithm for determining leap years in Python. https://qiita.com/kuro_take/items/525c5e31268f22c08fcf

Wolfram Alpha execution results

Is 2014 a leap year?
https://ja.wolframalpha.com/input/?i=2014%E5%B9%B4%E3%81%AF%E3%81%86%E3%82%8B%E3%81%86%E5%B9%B4%E3%81%8B+	
Input interpretation:	
Was 2014 a leap year??	
result:	
No. 2014 was not a leap year
(Only the following results)	
No. 2015 was not a leap year
No. 2200 is not a leap year
Yes. 2400 is a leap year

google execution result

Is 2014 a leap year? https://www.google.com/search?hl=ja&sxsrf=ALeKk01FtAR4-4wQoWvn1p1XWwVHS_xtYQ%3A1603150213052&source=hp&ei=hSGOX5ifAc7XhwOe7JGgDw&q=2014%E5%B9%B4%E3%81%AF%E3%81%86%E3%82%8B%E3%81%86%E5%B9%B4%E3%81%8B+&oq=2014%E5%B9%B4%E3%81%AF%E3%81%86%E3%82%8B%E3%81%86%E5%B9%B4%E3%81%8B+&gs_lcp=CgZwc3ktYWIQAzoHCCMQ6gIQJ1CUD1iUD2CjFWgBcAB4AIABbogBbpIBAzAuMZgBAKABAqABAaoBB2d3cy13aXqwAQo&sclient=psy-ab&ved=0ahUKEwjY9d_358HsAhXO62EKHR52BPQQ4dUDCAk&uact=5 2014=2008.497

(reference) Computer system and leap year <leap year (wikipedia) https://ja.m.wikipedia.org/wiki/%E9%96%8F%E5%B9%B4#コンピュータシステムと閏年 leap year https://ja.wolframalpha.com/input/?i=%E3%81%86%E3%82%8B%E3%81%86%E5%B9%B4 leap year https://ja.wolframalpha.com/input/?i=leap+year leap leap (from google translate) intercalary leap (from google translate)

Recommended Posts

I tried it with Wolfram Alpha and google, referring to "[Fundamental Information Technology Engineer Examination] I wrote an algorithm for determining leap years in Python."
[Fundamental Information Technology Engineer Examination] I wrote an algorithm for determining leap years in Python.
[Fundamental Information Technology Engineer Examination] I wrote an algorithm for the maximum value of an array in Python.
[Fundamental Information Technology Engineer Examination] I wrote the algorithm of Euclidean algorithm in Python.
[Fundamental Information Technology Engineer Examination] I wrote a linear search algorithm in Python.
I tried it with SymPy Live, Wolfram Alpha and google with reference to "Algorithm learned with Python 4th: Prime numbers".
I tried it with Wolfram Alpha by referring to "Solving simultaneous linear equations with Python (sweeping method and fractional expression)".
Note that I understand the least squares algorithm. And I wrote it in Python.
[For beginners in competition professionals] I tried to solve 40 AOJ "ITP I" questions with python
I tried to build an environment for machine learning with Python (Mac OS X)
python Basic sorting algorithm summary (Basic Information Technology Engineer Examination)
I tried to implement an artificial perceptron with python
I tried to implement GA (genetic algorithm) in Python
I wrote python3.4 in .envrc with direnv and allowed it, but I got a syntax error
I tried it with SymPyLive by referring to "[Ruby] Getting unique elements from an array".
I made a server with Python socket and ssl and tried to access it from a browser
I want to improve efficiency with Python even in an experimental system (2) RS232C and pySerial
I want to copy an English paper from pdf and put it in Google Translate
I also tried to imitate the function monad and State monad with a generator in Python
I wrote a doctest in "I tried to simulate the probability of a bingo game with Python"
I tried to make GUI tic-tac-toe with Python and Tkinter
I tried to create an article in Wiki.js with SQLAlchemy
[Python] I tried to explain words that are difficult for beginners to understand in an easy-to-understand manner.
processing to use notMNIST data in Python (and tried to classify it)
I want to solve APG4b with Python (only 4.01 and 4.04 in Chapter 4)
[Pandas] I tried to analyze sales data with Python [For beginners]
I tried to make a periodical process with Selenium and Python
Try to display google map and geospatial information authority map with python
I tried to make an analysis base of 5 patterns in 3 years
I tried to easily detect facial landmarks with python and dlib
I tried to make an image similarity function with Python + OpenCV
Note that I understand the algorithm of the machine learning naive Bayes classifier. And I wrote it in Python.