exercises
e1.py
e2.py
e3.py
main.py
utils.py
config.py
Q: Write a Python program to check that a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).
Q: Write a Python program that matches a string that has an a followed by zero or more b's.
Q: Write a Python program that matches a string that has an a followed by zero or more b's.
- Checkout to the
main
branch. - Run
python3 main.py <module_name>
Eg:python3 main.py e2
- Create a new file inside exercises with file name
e<serial_number>.py
. - Add
TEST_CASES = {
"case_1": "case 1 string",
"case_2": "case 2 string"
}
PATTERN = <Your Pattern here>
to the newly created file.
- Go to
__init__.py
and import the newly added module. - Go to
config.py
and add the new module toMODULES
- Create an issue
- Fork this repo
- Create a PR to the
development
branch with the issue reference.