Posts

Oversimplified explanation of Cryptocurrency and Bitcoin

Image
2008 recession caused due to bad mortgage investments by banks ,made many people loose their jobs and money.One among those was Satoshi Nakamoto. Not an actual Coin!!! Citizens trust the authority of government and banks to prevent fraud and bad investments . So,He decided to give a transaction system which would be alternative to  centralized system of banks and government .   Before  'fiat money' gold was considered to be the base for printing money. So, a country with more gold reserves would be rich and the country with less reserves would be poor. To avoid this FIAT MONEY was introduced. What is 'Fiat Money' Fiat money is currency that a government has declared to be legal tender, but it is not backed by a physical commodity. Fiat in latin means "it shall be" . Government is in control of printing money .This means it is centralized. Paper `fiat` currencies have no intrinsic value and are used solely as means of payment.  So...

List in Python

Below script covers the use of data structure  List in Python. For understanding the code ,I have provided comments along with code and the output below it. Kindly provide comments to improve the article. ########################################################## ## Basics of DATA STRUCTURE  `LIST`  in python ## output of all the commands is given after every command ########################################################## #!/bin/python3 import os import sys blank_list = [] #definition of blank list letters = [‘a’,’b’,’c’,’d’] #definition of list with data in it . print (letters) ”’ [‘a’,’b’,’c’,’d’] ”’ #Method1: Printing directly from list for letter in letters: print (letter) #Method2: Calculate the length of the list and iterate through the list using range method list_len = len(letters) for i in range(list_len): print (letters[i]) #Appending data to a list letters.append(‘e’) print (letters) ”’ [‘a’,’b’,’c’,’d’,’e’] ”’ #Extend t...

Getting started in Python….Hello World!

Image
Before learning ,syntax and commands one should learn how to install and execute a program through command terminal. Below are the steps to install python and execute python script on windows . 1.Go to site https://www.python.org/downloads/windows/ 2.Search for Windows x86 executable installer.This would be below latest python version. 3.Download the .exe file and install it. 4.Note down the path of folder where python is installed.Update environment variable PATH to include path of folder where python is installed. 5.Open a text file and type the below. print(‘Hello World!’) Save the file as HelloWorld.py (py is the extension for python script files) 6.Open up a command terminal and navigate to the folder where HelloWorld.py has been saved. 7.Execute the script by typing the below. python HelloWorld.py Output should be : Hello World! 8.Congratulation on the execution of your first python script.