title: loop in yaml elements
body: <p>I have below yml file and want to get Authority, Portfolio, ID, Parent, etc. in different variables. On top of this, I want a loop that will run over this element one by one. In this case for loop run will 2 times. each time with these values in variables. </p>
  
  <p>I am able to read the file but how can I wrote a for loop and get all these values in variables.</p>
  
  <pre><code>with open(r'/configuration.yml') as file:
      Config = yaml.load(file, Loader=yaml.FullLoader)
      print(Config)
  </code></pre>
  
  <ol>
  <li>Authority:ABC</li>
  <li>Portfolio:PR</li>
  <li>PortfolioID:1</li>
  <li>Parent:UU</li>
  <li>ProjectName:UU</li>
  <li>URLLogon:https://</li>
  <li>-</li>
  <li>Authority:ABC</li>
  <li>Portfolio:PR</li>
  <li>Parent:II</li>
  <li>ProjectName:MM</li>
  <li>URLLogon:https://</li>
  </ol>