Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ragibalasad/is-zero-zero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

🧠 is-zero-zero ?

A completely unnecessary Python project that explores dozens of ways to prove, confirm, calculate, deduce, or spiritually interpret whether zero equals zero.

Why?
Because I was bored. And I like stupid ideas.

Sure, you could just write 0 == 0,
but where's the fun in that?

What is this?

This repo is a growing collection of unreasonably complicated ways to check if 0 == 0.
Yes, the answer is always True. No, that won't stop us.


Example methods include:

  • Using math.acos and cos to confirm 0
  • Shuffling a list with just one zero in it
  • Comparing the memory size of zero with itself
  • Counting the length of an empty string
  • Using recursion for no reason
  • Rounding the sine of Ο€
  • Reading "0" from a formatted string and feeling proud

How to contribute

Wanna make this dumber? You're welcome here.

All you have to do is:

  1. Add a new function to is_zero_zero.py that returns True (because zero is zero).
  2. Make it as cursed, overengineered, or unnecessarily clever as you want.
  3. Bonus points if your logic makes someone question reality.
  4. Open a pull request.

Examples:

def is_zero_using_quantum_mechanics():
 # Replace with 12 lines of nonsense
 return True

Please do not write smart or clean code. We don’t do that here.

How to run it

python is_zero_zero.py

You'll see a bunch of checks that all (somehow) confirm that 0 is indeed 0.

Why does this exist?

Because the internet needs more weird stuff.
Because overengineering is a sport.
Because someone once made a repo called is_even that checks if a number is even β€” with one if condition per number β€” and I felt challenged.

License

MIT β€” because chaos should be free.

Final thoughts

If you're reading this and you're like

"This is the dumbest thing I’ve seen all week"
...mission accomplished.

PRs welcome. Stars appreciated. Sanity optional.

About

wonderfully overengineered python project that proves 0 == 0

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /