title: Embedded Dictionary Output
body: <p>I was wondering if someone could explain to me why my code produces "mixed results".</p>
  
  <p>Essentially the script gets a ticker id and within that dictionary, it attaches the current price and the currency type e.g USD, GBp etc. </p>
  
  <pre><code>tickerDict[result[row]] = {currentPriceData , currencyType[37:]} 
  </code></pre>
  
  <p>Essentially the output I would like is Ticker, Price, Currency.
  But I noticed when looking at the output in excel the price and currency could be mixed for example:</p>
  
  <pre><code>Ticker, Price Currency
  ABC,5,USD
  DCD,5,EUR
  ADF,USD,5
  FGA,5,GBP
  AFA,GBp,5
  </code></pre>
  
  <p>I fixed the code by using the following Line</p>
  
  <pre><code>tickerDict[result[row]] = {currentPriceData : currencyType[37:]} 
  </code></pre>
  
  <p>However, just for my better understanding of how code works why was the first method returning results in different orders?</p>