Have you ever wanted to apply a function on multiple data within a directory? Instead of manually typing different data’s name, why don’t we loop through all the data in that directory? Below is the code snippet for exactly that
This is especially useful when you need to apply one function to more than 5 data. Now, all we need to do is to run, for example,
python <a href="http://process.py/" data-attribute-index="2">process.py</a>
to apply one script to multiple data!