Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Code v v Validate Open in . . . Python 3 ( ipykernel ) The dataset file in assets / grades . txt contains multiple
Code Validate
Open in
Python ipykernel
The dataset file in assetsgradestxt contains multiple lines of people along with their grades in a class. Fix the incorrect regex between ### FIX CODE BELOW and ### FIX CODE ABOVE to generate a list of just those students who received a B in the course egJohn Doe', 'Jane Doe'
: def studentgrades:
import re
with open assetsgradestxtr as file:
grades file. read
### FIX CODE BELOW
pattern
matches refindall pattern grades
### FIX CODE ABOVE
# YOUR CODE HERE
return matches
: assert lenstudentgrades
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started