Тёмный
No video :(

How to Import a Python Function from Another File 

CodeFatherTech
Подписаться 1,2 тыс.
Просмотров 92 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@codefather_tech
@codefather_tech Год назад
Check out this video next: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gJBeYcqHNCM.html
@FYIRE
@FYIRE 11 месяцев назад
your explanation is really very clear ....just like this make short video on other topics in python...thanks.
@elghark
@elghark 3 месяца назад
In my old laptop (Windows 10) I could follow this procedures and it worked great. Now, I'm working on a new PC (always Windows 10) but this time commands like "touch" on CMD can't work. Really no idea what to do...
@gamephoenix666
@gamephoenix666 Год назад
millions of thanks
@codefather_tech
@codefather_tech Год назад
Thank you Mighty Storm, I'm glad you found it useful!
@abhikkumarde1053
@abhikkumarde1053 3 года назад
Can u please do a similar video on how to use classes and methods from an imported file .. Would be beneficial 👍👍 Thanks in advance
@codefather_tech
@codefather_tech 2 года назад
Hi Abhik, sure! I will create a video for that.
@Ravichowdarydevarapalli
@Ravichowdarydevarapalli 3 года назад
Very nice 👌 and Clean explanation 👍
@codefather_tech
@codefather_tech 3 года назад
Thank you Ravi, I'm glad you liked it 😀
@list9016
@list9016 2 года назад
but my question is, if the file is in a different folder, how do i get access to the functions inside of it?
@sjacobsen
@sjacobsen 2 года назад
watch 5:42
@timothebrodeur7822
@timothebrodeur7822 Год назад
ctrl + click
@abdoulayesaadou4448
@abdoulayesaadou4448 Год назад
Thanks!
@austinmoody4719
@austinmoody4719 Год назад
for some reason i cannot import constants from another file, i have my folder structure exactly as you have it and its throwing a traceback error. im using vs code as a text editor if that means anything
@pythonpython8624
@pythonpython8624 Год назад
What i dont understand is, you are looping over a original_countries as it is a list but you dont have variable set as a list
@codefather_tech
@codefather_tech Год назад
Watch 00:02:14. This is where the countries list is passed to the filter_countries() function (as the original_countries argument).
@sayantan.d.gupta3451
@sayantan.d.gupta3451 Год назад
Countries=[ ' ' ] ... Here countries he used as a variable
@basavrajr8577
@basavrajr8577 2 года назад
Nice play with python file... can you please share code or video for -- call/import/run python file from robot-framework.. actually i tried--- .py contain (class contain -- 3-4 functions)server connecting via paramiko module and doing some stuff and getting some output from server.. and that output using in robot framework... but whenever i trying to import paramiko or any other module getting no keyword found for that function..
@codefather_tech
@codefather_tech Год назад
@basavrajr8577 before checking anything else make sure the paramiko module is installed (pip install paramiko).
@Andrewtate727-s2z
@Andrewtate727-s2z 3 года назад
What is that ide name.that doesn't seems like vscode
@codefather_tech
@codefather_tech 3 года назад
Hi Areeb, it's Visual Studio Code
@GabrielGcbs
@GabrielGcbs 3 года назад
Hi. I'm getting the error "No module named..."
@ManAcadie
@ManAcadie 3 года назад
I've got the same error its driving me up the damn wall!
@codefather_tech
@codefather_tech 2 года назад
Gabriel have you fixed the error?
@codefather_tech
@codefather_tech 2 года назад
Richard, have you found a way to fix the error you are seeing?
@lakshminarasaiah6357
@lakshminarasaiah6357 Год назад
Same error
@flosrv3194
@flosrv3194 4 месяца назад
same error, impossible to solve it. i lost my day on it no way to import functions into main@@codefather_tech
@almah-bm2mv
@almah-bm2mv Год назад
lib doesn't work for me
@codefather_tech
@codefather_tech Год назад
@user-re1ey2dt3i do you have more details about the code that is not working for you?
@codefather_tech
@codefather_tech Год назад
Well done! Now that you have learned these core Python concepts about the import statement, let's create a Python game together: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gJBeYcqHNCM.html
Далее
Functions vs Classes: When to Use Which and Why?
10:49
Просмотров 153 тыс.
Best Practices for Python Main Functions
11:17
Просмотров 183 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 55 млн
Whoa
01:00
Просмотров 22 млн
Importing Your Own Python Modules Properly
9:56
Просмотров 221 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,7 млн
Python Functions (The Only Guide You'll Need) #12
17:20
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
Convert py to exe - from code to software
5:55
Просмотров 472 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 802 тыс.
5 Tips To Organize Python Code
12:16
Просмотров 231 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 55 млн