No, don't take it out, replace it with the right stuff. The code wasn't meant to be used exactly, it was meant to teach you the concepts. If you don't understand what the code does, it does you no good.

If you're simply searching for file names containing a substring then you can use 'sub string' in 'main string'. It really depends on what you're looking for. You might also be interested in the glob module.