Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 29, 2020 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/ec72f1aa68772c18bada105d9a4b7e22 to your computer and use it in GitHub Desktop.
Save codecademydev/ec72f1aa68772c18bada105d9a4b7e22 to your computer and use it in GitHub Desktop.
Codecademy export
names = ["Mohamed", "Sara", "Xia", "Paul", "Valentina", "Jide", "Aaron", "Emily", "Nikita", "Paul"]
insurance_costs = [13262.0, 4816.0, 6839.0, 5054.0, 14724.0, 5360.0, 7640.0, 6072.0, 2750.0, 12064.0]
# Append Pricilla's info
names.append('Priscilla')
insurance_costs.append(8320.0)
#Combine the two list
medical_records = zip(names, insurance_costs)
print(list(medical_records))
#The lenght of medical records
num_medical_records = len(medical_records)
print("There are " + str(num_medical_records) + " medical records.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment