Back to Lesson
Prefix Routing
Filter based on initial string patterns.
Instructions
- Given.
files = ["sys_boot.log", "app_error.log", "sys_temp.tmp"] - Iterate overand check if the string starts with
files."sys_" - If it does, print the file name.
main.py
main.py
Ctrl + Enter