This repository was archived by the owner on Sep 7, 2025. It is now read-only.
added Zellers Congruence#50
Merged
abranhe merged 2 commits intoAllAlgorithms:masterfrom Nov 18, 2018
mrvnmchm:master
Merged
Conversation
Contributor
Author
|
Updated to add arguments and help page. Let me know of any other improvements I can make. 👍 mrvnmchm@M3-Q-X70-A:/some_folder/AllAlg/python$ python math/zellers_birthday.py --help
usage: zellers_birthday.py [-h] bday
Find out what day of the week you were born on Accepts birthday as a string in
mm-dd-yyyy or mm/dd/yyyy format
positional arguments:
bday Date as a string (mm-dd-yyyy or mm/dd/yyyy)
optional arguments:
-h, --help show this help message and exit
mrvnmchm@M3-Q-X70-A:/some_folder/AllAlg/python$ python math/zellers_birthday.py '01/04/1989'
Your birthday 01/04/1989, was a Wednesday!>>> import zellers_birthday as z
>>> z.zeller('10/10/2018')
Your birthday 10/10/2018, was a Wednesday!
>>> z.zeller('04-23-1991')
Your birthday 04-23-1991, was a Tuesday!
>>> z.zeller('01-31-1976')
Your birthday 01-31-1976, was a Saturday! |
abranhe
approved these changes
Nov 18, 2018
Member
abranhe
left a comment
There was a problem hiding this comment.
Thanks so much for your contribution to The All ▲lgorithms Project. Without people like you submitting Pull Requests we couldn't run this project. You rock @mrvnmchm
Make sure you follow abranhe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.