In Python Write code that creates a LIST (data type) of only the first names of the students who are juniors. call it juniorRoster= Given the folowing data set: 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],

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In Python

Write code that creates a LIST (data type) of only the first names of the students who are juniors.

call it

juniorRoster=

Given the folowing data set:

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],

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Binary Search Algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education