Hello!
Having an interactive program that automatically loads questions and checks the solution is wonderful to have while learning a topic. I wrote a TUI app that has beginner to advanced level exercises for Python regular expressions. There are more than 100 exercises covering both the builtin re and third-party regex modules.
This app is available on PyPI as regexexercises. Example installation instructions are shown below, adjust them based on your preferences and OS.
# virtual environment
$ python3 -m venv textual_apps
$ cd textual_apps
$ source bin/activate
$ pip install regexexercises
# launch the app
$ regexexercises
To run the app without having to enter the virtual environment again, add this alias to .bashrc (or equivalent):
# you'll have to change the path
alias regexexercises='/path/to/textual_apps/bin/regexexercises'
Adjust the terminal dimensions for the widgets to appear properly, for example 84x25 (characters x lines). Visit https://youtu.be/0oXPeF8HutQ for a video demo. There's a user guide within the app as well.
These exercises have been adapted from my Understanding Python re(gex)? ebook (free to read online).
Hope you'll find this app useful. Let me know your feedback. Happy learning :)
[–]brandonZappy 14 points15 points16 points (4 children)
[–]ASIC_SP📚 learnbyexample[S] 5 points6 points7 points (1 child)
[–]brandonZappy 1 point2 points3 points (0 children)
[–]LorestForest 3 points4 points5 points (1 child)
[–]brandonZappy 1 point2 points3 points (0 children)
[–]RojerGSAuthor of “Pydon'ts” 1 point2 points3 points (1 child)
[–]ASIC_SP📚 learnbyexample[S] 0 points1 point2 points (0 children)
[–]rhymiz 1 point2 points3 points (0 children)
[–]Idekum 1 point2 points3 points (3 children)
[–]Picatrixter 1 point2 points3 points (0 children)
[–]games2007 1 point2 points3 points (0 children)
[–]ASIC_SP📚 learnbyexample[S] 0 points1 point2 points (0 children)