Sample code prepared while learning python