title: (Python) Extract value in a dict in list
body: <p><strong>Hello</strong>,
  I do a new project with a Discord bot for a game (iRacing) to keep information during a race. I use pyirsdk and i look all source code to try to understand how it works.
  However, I have a dict in a list and i'm blocked. </p>
  
  <pre><code>
  DriverInfo: 
  
  {
  
      'DriverHeadPosX': -0.579,
      'DriverHeadPosY': 0.398,
      'DriverHeadPosZ': 0.571,
  
      'Drivers': 
  
      [
  
      {'CarIdx': 0, 'UserName': 'Enzo Foucaud', 'AbbrevName': '', 'Initials': '', 'UserID': 409133, 'TeamID': 0, 'TeamName': 'Enzo Foucaud', 'CarNumber': '64', 'CarNumberRaw': 64, 'CarPath': 'mercedesamggt3', 'CarClassID': 0, 'CarID': 72, 'CarIsPaceCar': 0, 'CarIsAI': 0, 'CarScreenName': 'Mercedes AMG GT3', 'CarScreenNameShort': 'Mercedes AMG GT3', 'CarClassShortName': None, 'CarClassRelSpeed': 0, 'CarClassLicenseLevel': 0, 'CarClassMaxFuelPct': '1.000 %', 'CarClassWeightPenalty': '0.000 kg', 'CarClassPowerAdjust': '0.000 %', 'CarClassColor': 16777215, 'IRating': 1, 'LicLevel': 1, 'LicSubLevel': 1, 'LicString': 'R 0.01', 'LicColor': '0xundefined', 'IsSpectator': 0, 'CarDesignStr': '1,dff000,1a4b9b,ffffff', 'HelmetDesignStr': '1,dff000,1a4b9b,ffffff', 'SuitDesignStr': '1,dff000,1a4b9b,ffffff', 'CarNumberDesignStr': '0,0,FFFFFF,777777,000000', 'CarSponsor_1': 0, 'CarSponsor_2': 0, 'CurDriverIncidentCount': 0, 'TeamIncidentCount': 0}
  
      ]
  
  }
  
  </code></pre>
  
  <p>I do this to know if 'UserName' exist or not</p>
  
  <pre><code>DriversInfo_list = ir['DriverInfo']
  print('DriverInfo:', DriversInfo_list)
      for i in DriversInfo_list:
          if i == 'Drivers':
              print("Drivers Exists")
              SoloDriver = DriversInfo_list['Drivers']
              print(SoloDriver)
              if [d['UserName'] for d in SoloDriver if 'UserName' in d]:
                  print('Username Exists')
  </code></pre>
  
  <p>Console :</p>
  
  <pre><code>DriverInfo: {...}
  Drivers Exists
  [{'CarIdx': 0, ...}]
  Username Exists
  </code></pre>
  
  <p>Now, i want to extract many info of 'Drivers' (dict) in DriverInfo who is a list.
  For example i want the value of UserName but i don't know how i can do this. I search during all the day .. ^^ i do many lesson to try this ^^</p>
  
  <p>Thank's for your answer</p>