Skip to main content

Well your question is answered, but consider this:

Most of the linux distros have python preinstalled, so why not use it?

Just type

python

in the terminal and then do all the arithmeticsarithmetic you want, like

2+2

Will output 4 :)

You can also do this directly from terminal with the -c python argument.

python -c 'print 2+2'

Well your question is answered, but consider this:

Most of the linux distros have python preinstalled, so why not use it?

Just type

python

in the terminal and then do all the arithmetics you want, like

2+2

Will output 4 :)

Well your question is answered, but consider this:

Most of the linux distros have python preinstalled, so why not use it?

Just type

python

in the terminal and then do all the arithmetic you want, like

2+2

Will output 4 :)

You can also do this directly from terminal with the -c python argument.

python -c 'print 2+2'
Source Link

Well your question is answered, but consider this:

Most of the linux distros have python preinstalled, so why not use it?

Just type

python

in the terminal and then do all the arithmetics you want, like

2+2

Will output 4 :)