In [1]:
import quandl
import pandas as pd
In [2]:
tickers = ["fb aapl googl amzn nflx v ge tsla brk_b ko"]  # Specify tickers we want
tickers = [tic.upper().split() for tic in tickers]  # Make them all upper case, and individual items in a list
tickers = [tic for sublist in tickers for tic in sublist]  # Flatten the nested list

# Add "WIKI/" as a prefix and ".11" as a suffix to each ticker
tickers_quandl = ["WIKI/" + tic + '.11' for tic in tickers]
In [3]:
tickers_quandl
Out[3]:
['WIKI/FB.11',
 'WIKI/AAPL.11',
 'WIKI/GOOGL.11',
 'WIKI/AMZN.11',
 'WIKI/NFLX.11',
 'WIKI/V.11',
 'WIKI/GE.11',
 'WIKI/TSLA.11',
 'WIKI/BRK_B.11',
 'WIKI/KO.11']