Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Course : Data Science in Python Question : The dataset file in assets/grades.txt contains a line separated list of people with their grade in a

Course : Data Science in Python Question :

The dataset file in assets/grades.txt contains a line separated list of people with their grade in a class. Create a regex to generate a list of just those students who received a B in the course. import re def grades(): with open ("assets/grades.txt", "r") as file: grades = file.read()

# YOUR CODE HERE raise NotImplementedError() assert len(grades()) == 16 Grades file data : Ronald Mayr: A Bell Kassulke: B Jacqueline Rupp: A Alexander Zeller: C Valentina Denk: C Simon Loidl: B Elias Jovanovic: B Stefanie Weninger: A Fabian Peer: C Hakim Botros: B Emilie Lorentsen: B Herman Karlsen: C Nathalie Delacruz: C Casey Hartman: C Lily Walker : A Gerard Wang: C Tony Mcdowell: C Jake Wood: B Fatemeh Akhtar: B Kim Weston: B Nicholas Beatty: A Kirsten Williams: C Vaishali Surana: C Coby Mccormack: C Yasmin Dar: B Romy Donnelly: A Viswamitra Upandhye: B Kendrick Hilpert: A Killian Kaufman: B Elwood Page: B Mukti Patel: A Emily Lesch: C Elodie Booker: B Jedd Kim: A Annabel Davies: A Adnan Chen: B Jonathan Berg: C Hank Spinka: B Agnes Schneider: C Kimberly Green: A Lola-Rose Coates: C Rose Christiansen: C Shirley Hintz: C Hannah Bayer: B

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions