# Author Archive: Editor

Ankan Basu is a Certified Professional Geologist (CPG) with 10+ years of experience in the field of geology, hydrogeology and geochemistry.

## Variable Declaration in C with Example code

// Program for DIVISION AND THE MODULUS OPERATOR #include <stdio.h> int main(void) { int diamonds = 45; // Number of Diamonds in a store int ladies = 7; // Number of ladies came to the…

## Online tools to manage your finance in 2014

In this difficult economic condition, everyone is trying to save and make budgets if they can. In this article, I am going to outline the tools I use to manage my finance. I am still not an expert with my…

## R cheat sheet for working with normal distribution

This article presents a bunch of code snippets that you can use as a reference when dealing with normal distribution. R makes it easy to run stats. Use, improve and share your comments please.   #the 68-96-99.7% rule for the…

## Some useful list methods in Python with examples

The following examples show you some of the most basic methods that you would use for a Python list object. >>> #create a list >>> #use numers as list items for simplicity >>> alist=[1,2,3,4,5] >>> >>> #add an object 6…

## Some useful String Type Built-in Methods in Python with examples

Well, as we do geology, lets first make an example string – “Geology is great” and work on it. s.capitalize() – Capitalizes the first letter of the string s. >>> ex.capitalize() ‘Geology is great’ >>> ex[-6:].capitalize() ‘ great’ >>> ex[-5:].capitalize() ‘Great’ s.center(width)…

## Some useful built in functions in Python with examples

There are many built in functions in Python. I am only showing you some that I feel most important. Explore and learn more at your free time. abs() Return the absolute value of a number. >>> abs(-5) 5 >>> abs(-3.4*4)…

## Know the type() and check the id() in Python

I love both the type and the id commands in Python. They are self explanatory and can save you from a lot of trouble. For example, you want to create an one item tuple containing “one” and combine with another…

## Entering a list as an user-input in Python

You probably know and use the input() command in Python for interactive data entry. Sometimes, you wish to enter a list. If you use the input() command, it will store the list as a string. Below i will show you…