Use the provided data to make a new dictionary (solution must be dictionary data type) with the same keys as in studentDataScores and values that represent the average of each student’s four test grades. call it newDict= studentDataScores = {('Will','male','junior'):[0.81,0.75,0.74,0.8], ('Tom','male','senior'):[0.87,0.79,0.81,0.81], ('Donald','male','junior'):[0.82,0.77,0.8,0.8], ('Trey','male','senior'):[0.86,0.78,0.77,0.78], ('John','male','junior'):[0.74,0.81,0.87,0.73], ('Pat','male','senior'):[0.9,0.82,0.94,0.79], ('Rick','male','senior'):[0.8,0.88,0.87,0.88], ('Jorge','male','sophomore'):[0.66,0.76,0.79,0.76], ('Tripp','male','senior'):[0.81,0.78,0.8,0.89], ('Ed','male','senior'):[0.81,0.87,0.88,0.84], ('Erik','male','junior'):[0.76,0.73,0.83,0.76], ('Wallard','male','sophomore'):[0.7,0.8,0.79,0.8], ('Ron','male','senior'):[0.76,0.78,0.82,0.83], ('Perrie','male','junior'):[0.83,0.87,0.77,0.75], ('Rob','male','senior'):[0.92,0.8,0.82,0.84], ('Thomas','male','junior'):[0.76,0.72,0.8,0.72], ('Mark','male','senior'):[0.87,0.79,0.81,0.83], ('Filipe','male','junior'):[0.77,0.81,0.74,0.75], ('Dean','male','senior'):[0.78,0.8,0.8,0.8], ('Sampson','male','senior'):[0.8,0.89,0.82,0.87], ('Aleck','male','senior'):[0.86,0.79,0.87,0.8], ('Gene','male','junior'):[0.79,0.72,0.78,0.72], ('Ki','male','senior'):[0.83,0.79,0.9,0.8], ('Fei','male','junior'):[0.75,0.72,0.8,0.81], ('Hung','male','senior'):[0.86,0.91,0.84,0.9], ('Chen','male','senior'):[0.76,0.77,0.84,0.88], ('Lei','male','senior'):[0.84,0.86,0.78,0.88], ('Kang','male','senior'):[0.78,0.89,0.89,0.86], ('Anderson','male','junior'):[0.8,0.73,0.78,0.8], ('Nilson','male','junior'):[0.82,0.84,0.79,0.76], ('Arnie','male','sophomore'):[0.68,0.73,0.81,0.72], ('Joch','male','junior'):[0.82,0.86,0.8,0.73], ('Jurg','male','junior'):[0.68,0.78,0.78,0.81], ('Carly','male','junior'):[0.72,0.82,0.79,0.76], ('Thorson','male','senior'):[0.91,0.84,0.9,0.89], ('Harrie','male','junior'):[0.76,0.78,0.8,0.79], ('Adi','male','senior'):[0.83,0.87,0.82,0.83], ('Var','male','senior'):[0.76,0.86,0.88,0.79], ('Shant','male','senior'):[0.79,0.81,0.78,0.78], ('Krishna','male','sophomore'):[0.66,0.76,0.74,0.8], ('Manojol','male','junior'):[0.75,0.77,0.72,0.81], ('Sophi','female','senior'):[0.83,0.96,0.9,0.95], ('Lynne','female','senior'):[0.97,0.85,0.93,0.88], ('Bailee','female','sophomore'):[0.83,0.78,0.74,0.75], ('Karenly','female','junior'):[0.79,0.88,0.9,0.84], ('Audree','female','junior'):[0.79,0.85,0.86,0.81], ('Suzy','female','junior'):[0.81,0.82,0.93,0.88], ('Maris','female','senior'):[1,0.92,0.95,0.91], ('Tanis','female','sophomore'):[0.75,0.77,0.76,0.81], ('Errein','female','senior'):[0.88,0.93,0.97,0.91], ('Chantel','female','junior'):[0.85,0.84,0.85,0.79], ('Laura','female','junior'):[0.82,0.84,0.94,0.88], ('Sophia','female','senior'):[0.93,0.96,0.94,0.87], ('Bianca','female','junior'):[0.83,0.79,0.93,0.9], ('Mia','female','junior'):[0.89,0.85,0.89,0.91], ('Monika','female','junior'):[0.89,0.82,0.9,0.91], ('Emma','female','senior'):[0.96,0.85,0.88,0.97], ('Margaurite','female','junior'):[0.88,0.86,0.85,0.79], ('Helga','female','senior'):[0.9,0.85,0.84,0.89],
Use the provided data to make a new dictionary (solution must be dictionary data type) with the same keys as in
studentDataScores and values that represent the average of each student’s four test grades.
call it
newDict=
studentDataScores = {('Will','male','junior'):[0.81,0.75,0.74,0.8],
('Tom','male','senior'):[0.87,0.79,0.81,0.81],
('Donald','male','junior'):[0.82,0.77,0.8,0.8],
('Trey','male','senior'):[0.86,0.78,0.77,0.78],
('John','male','junior'):[0.74,0.81,0.87,0.73],
('Pat','male','senior'):[0.9,0.82,0.94,0.79],
('Rick','male','senior'):[0.8,0.88,0.87,0.88],
('Jorge','male','sophomore'):[0.66,0.76,0.79,0.76],
('Tripp','male','senior'):[0.81,0.78,0.8,0.89],
('Ed','male','senior'):[0.81,0.87,0.88,0.84],
('Erik','male','junior'):[0.76,0.73,0.83,0.76],
('Wallard','male','sophomore'):[0.7,0.8,0.79,0.8],
('Ron','male','senior'):[0.76,0.78,0.82,0.83],
('Perrie','male','junior'):[0.83,0.87,0.77,0.75],
('Rob','male','senior'):[0.92,0.8,0.82,0.84],
('Thomas','male','junior'):[0.76,0.72,0.8,0.72],
('Mark','male','senior'):[0.87,0.79,0.81,0.83],
('Filipe','male','junior'):[0.77,0.81,0.74,0.75],
('Dean','male','senior'):[0.78,0.8,0.8,0.8],
('Sampson','male','senior'):[0.8,0.89,0.82,0.87],
('Aleck','male','senior'):[0.86,0.79,0.87,0.8],
('Gene','male','junior'):[0.79,0.72,0.78,0.72],
('Ki','male','senior'):[0.83,0.79,0.9,0.8],
('Fei','male','junior'):[0.75,0.72,0.8,0.81],
('Hung','male','senior'):[0.86,0.91,0.84,0.9],
('Chen','male','senior'):[0.76,0.77,0.84,0.88],
('Lei','male','senior'):[0.84,0.86,0.78,0.88],
('Kang','male','senior'):[0.78,0.89,0.89,0.86],
('Anderson','male','junior'):[0.8,0.73,0.78,0.8],
('Nilson','male','junior'):[0.82,0.84,0.79,0.76],
('Arnie','male','sophomore'):[0.68,0.73,0.81,0.72],
('Joch','male','junior'):[0.82,0.86,0.8,0.73],
('Jurg','male','junior'):[0.68,0.78,0.78,0.81],
('Carly','male','junior'):[0.72,0.82,0.79,0.76],
('Thorson','male','senior'):[0.91,0.84,0.9,0.89],
('Harrie','male','junior'):[0.76,0.78,0.8,0.79],
('Adi','male','senior'):[0.83,0.87,0.82,0.83],
('Var','male','senior'):[0.76,0.86,0.88,0.79],
('Shant','male','senior'):[0.79,0.81,0.78,0.78],
('Krishna','male','sophomore'):[0.66,0.76,0.74,0.8],
('Manojol','male','junior'):[0.75,0.77,0.72,0.81],
('Sophi','female','senior'):[0.83,0.96,0.9,0.95],
('Lynne','female','senior'):[0.97,0.85,0.93,0.88],
('Bailee','female','sophomore'):[0.83,0.78,0.74,0.75],
('Karenly','female','junior'):[0.79,0.88,0.9,0.84],
('Audree','female','junior'):[0.79,0.85,0.86,0.81],
('Suzy','female','junior'):[0.81,0.82,0.93,0.88],
('Maris','female','senior'):[1,0.92,0.95,0.91],
('Tanis','female','sophomore'):[0.75,0.77,0.76,0.81],
('Errein','female','senior'):[0.88,0.93,0.97,0.91],
('Chantel','female','junior'):[0.85,0.84,0.85,0.79],
('Laura','female','junior'):[0.82,0.84,0.94,0.88],
('Sophia','female','senior'):[0.93,0.96,0.94,0.87],
('Bianca','female','junior'):[0.83,0.79,0.93,0.9],
('Mia','female','junior'):[0.89,0.85,0.89,0.91],
('Monika','female','junior'):[0.89,0.82,0.9,0.91],
('Emma','female','senior'):[0.96,0.85,0.88,0.97],
('Margaurite','female','junior'):[0.88,0.86,0.85,0.79],
('Helga','female','senior'):[0.9,0.85,0.84,0.89],
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images