Python as a calculator


I’m running crunchbang linux on my EEEPC 900, and i recently had a sudden urge need to do a couple of calculations.

As far as I am aware, there isn’t a calculator app built into #!

But then i remembered python programming 101 – use the python interpretter as a calculator!

python interpretter used as a calculator

python interpretter used as a calculator

Just open a terminal, type python, hit enter (pre installed on practically every distro i’ve ever encountered), then just type in the sums, you dont even need to know any python, its common sense. extremely handy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: