" copy these lines to your ~/.vimrc
" Scientifc Calculator using python3 -->  :Calc sin(30)
" :Calc sum([x^2 for x in range(100)])
command! -nargs=+ Calc :py print(<args>)
py from math import *

" you can also create a bash or zsh alias like:
"  alias calc='python3 -ic "from math import *; import cmath"'

" the alias tip came from: 
" https://www.reddit.com/r/linux/comments/3ly2zl/lpt_use_python_interpreter_as_an_advanced/