Using regular expressions, complete the functions in number_search.py to capture
- numbers in text file
article.txt(whole and decimal) - latex format of fractions (mixed and proper) i.e
\\frac{1}{1} = 1/2or2\\tinyfrac{1}{2} = 2 1/2 - only match numbers or fractions that end with
space(" "),fullstop(.)comma(,)ornewline(\n) - make sure all test have passed in pytest
- fork the repo and update number_search.py file
- run
pyteston terminal to see if function works - send a pull request when done to get graded
- Make sure to add directory to your
PYTHONPATHto avoidmodule import error - Do not edit
article.txtandtest_regex.py