Linux

How Do I List All Files of a Directory in Python?

 What is a directory?A directory is a unit organizational structure used to store a collection of programs and subdirectories. Sometimes as a coder you have to deal with the countless number files within different directories. Hence, it becomes reasonable to organize these files within directories. In this article, we are going to look at the …

How Do I List All Files of a Directory in Python? Read More »

What’s the Difference Between ‘py’ and ‘python’ in the Terminal?

Problem If you run Python in your terminal or shell, you may have realized that there are two ways to do so: using the “python” command and using the “py” command. What’s the difference? Example Say, you want to check your Python version. You can run both commands and the output is different! Here’s using …

What’s the Difference Between ‘py’ and ‘python’ in the Terminal? Read More »