Skip to content
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
mrvnmchm:master
Nov 18, 2018
Merged

added Zellers Congruence#50
abranhe merged 2 commits intoAllAlgorithms:masterfrom
mrvnmchm:master

Conversation

@mrvnmchm
Copy link
Contributor

@mrvnmchm mrvnmchm commented Oct 9, 2018

No description provided.

@mrvnmchm
Copy link
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!

Copy link
Member

@abranhe abranhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@abranhe abranhe merged commit 0d707e8 into AllAlgorithms:master Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants