Finding documentation about os.walk()
As this tutorial uses some relatively complex Python methods, it is very important to carefully read the documentation of each method before using it, otherwise you’ve learned little.
There are various places where you can look for documentation including the Python 3 documentation site, the pydoc3 command line utility and the Python 3 shell. Most of the time the Python 3 documentation site has the most up to date information. The important thing is trying to understand the presented information and the subtleties of the methods you want to use. There are times where a small option can make the difference between a working and a non-working program.
Should you wish to learn more about the os.scandir() method, visit https://docs. python.org/3/library/os.html#os.scandir.