> I stole the calc bash function from Addy Osmani in 2012 and have used it daily since.
Do yourself a favor
# ~/.bashrc
function py {
python3 -c "from math import *; print($*)"
}
$ py 3 + 3
6
$ py "sqrt(7)"
2.6457513110645907
$ py pi / 5
0.6283185307179586