IN PYTHON
Write a function called "def first 20 stock prices(svmbos, prices)" which will take two arguments. symbols and prices'. Prices is list of prices in float. Write a 'for loop, to print to screen both stock symbols and stock prices, for first 20 stocks, in user friendly way.
One example would be "Symbols: GE, Stock Price: 16.135"
Each symbol and price for this symbol must be on the same line Price should only keep 2 decimal places, like 16.13 This function should only print, should not return anything
Stock Symbols Follow: ['Ge', 'BAC', 'F', 'P CHK'FE', PBR.ACXKO 'WEC, 'CTLBBD, PBR,NWL', 'SWN 'VALE'VMN''T', 'NOK, ', 'vz', 'C', 'KIM', 'KR', 'NLY' JPM AUY', "CL' V', "MRK'XOM', 'WET', GM'AES', CAT,RIG', 'MRO 'soRE, E HPQ, X', 'MDR,'ESV', 'TSM', 'PHM', 'NBR', 'MO, WMT', 'MGM' , 'PG', 'AKS', 's', 'T ', 'ABT', 'JC?', 'TAL', 'BSX', 'G DAL EPD, 'KEY', 'MSJCI,' 'EXC, 'HAL','ECA, 'M', 'AG' JNJ'ABX','LVS', 'CIG', 'DIS]
Prices Follow: [16.13, 32.2, 11.65, 39, 13.83, 25.33, 4.99, 13.1, 150, 37.81, 4.81, 4, 32 .08, 12.66, 19.54, 48.52, 65.92, 18.2, 13.09, 19.32, 7.63, 2.23, 116.12,3 66, 73.45, 54.71, 80.07, 15.99, 30.88, 10.91, 87.7, 6.34, 5.36, 20.66, 62 .05, 88.98, 4.3, 63.42, 3.89, 34.01, 28.42, 4.69, 15.3, 55.22, 43.48, 11.7 3, 167.05, 11.17, 18.84, 44.31, 19.38, 29.38, 21.84, 57.59, 41.42, 23.91, 145.28, 14.76, 75.5, 2.32, 112.19, 38.87, 55.61, 13.35, 27.4, 6.49, 40.94., 8.66, 6.59, 45.73, 34.53, 8.47, 71.03, 108.39, 37.06]
IN PYTHON Write a function called "def first 20 stock prices(svmbos, prices)" which will take two...
IN PYTHON Write a function called "def top_prices(prices, n):", which will take two arguments. The first argument is the list of prices, each price should be a number type (int, float). The second argument 'n' indicates top number of prices. For example, if n-3, this function should return a new list of the top 3 prices, sorted from lowest to highest. If n-10, this function should return a new list of the top 10 prices, sorted from lowest to highest....