Python Import Function From Folder | Python Tutorials | SavageCamp

preview_player
Показать описание
Python Import Function From Folder
We saw how to import from a function from a file when we are on the same folder.
But what happens we have to get a function that resides in some other directory? Well that might sound complicated and complex because not only are your importing a function from a file but the file actually is in some other location.
Well, in this video we will learn how to import such functions.

Follow our socials:
Рекомендации по теме
Комментарии
Автор

how can u import variable from a fucntion inside the directory ?

shah_f
Автор

Both of my files are in the SAME directory but I am still struggling to import the damn file. I have spent at least half a day to fix this.

ajayjoseph
Автор

I am not able to import from the folder. When I want to import a function from a file located in another directory, it gives me an error

vivekmusafir