step 1: From the main function check whether the input provided is a valid input or not. step 2: If its a valid input, pass the symbol as an argument in the function, else it will display an error message and exit. step 3: This function will provide the quoted price of the share and will print it.
quote= urllib2.urlopen('http://download.finance.yahoo.com/d/quotes.csv?s='+sym+'&f=l1') #quote is an instance variable which is storing the quoted price at that instance, of that NASDAQ symbol
#Here is the main function where the argument passed in the commandline is checked to see whether it is a valid input or not.
link to the code: https://github.com/puspita23/puspita_utility/commit/291123932a2db6aca2fad1dac2133cc21118cb0c