When you type a command, Python searches for its executables and resources from one of the pre-listed directories. If you want, you can add additional path using the ‘sys’ library.
|
1 2 3 4 5 6 7 8 9 10 11 |
# importing sys library import sys # printing the current list of paths print(sys.path) # Adding a new path to the system path variable sys.path.append('/Users/farukh/Python ML IVY') # Checking the system path again print(sys.path) |
Sample output:

Author Details
Lead Data Scientist
Farukh is an innovator in solving industry problems using Artificial intelligence. His expertise is backed with 10 years of industry experience. Being a senior data scientist he is responsible for designing the AI/ML solution to provide maximum gains for the clients. As a thought leader, his focus is on solving the key business problems of the CPG Industry. He has worked across different domains like Telecom, Insurance, and Logistics. He has worked with global tech leaders including Infosys, IBM, and Persistent systems. His passion to teach inspired him to create this website!
