title: How to get the nested values from dict in Python
body: <p>I have this dict </p>
  
  <pre><code>{
      'name': 'Katty', 
      'assignment': [80, 50, 40, 20],
      'test': [75, 75], 
      'lab': [78.2, 77.2]
  }
  </code></pre>
  
  <p>I am expecting to get this output:  </p>
  
  <pre><code>80
  50
  40
  20
  75
  75
  78.2
  77.2
  </code></pre>
  
  <p>But I am getting only the numbers for assignment and I don't want to do 3 different loops (for assignment, test, and lab). Is there any better solution to get my desired output?</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>for i in Katty['assignment']:
      print(i)
  
  80
  50
  40
  20
  </code></pre>