People think I'm weird for using Python as a calculator.

· · Web · 0 · 0 · 2

@tobias as long as you do it in the command line and in the privacy of your own home 😄
Python IS a great calculator, Python 3 that is, 'cause I want my fractions to make sense dammit..

@tobias You shouldn't feel weird. First, you aren't the only one who does this. Second, use as a calculator is a feature that goes back to Python's ancestor, ABC, which Guido worked on before creating Python. The feature is touted in old ABC manuals, it seems to have been an explicit design goal to support this. And you still see remnants of the idea in the Python tutorial starting with how to use Python as a calculator. Just part of the Python DNA...

@shh I haven't found a better programmers calculator yet. The ease of which you can define functions etc makes for very quick and advanced calculations.

Sign in to participate in the conversation
Mastodon for Tech Folks is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!