Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
