#๐ ok i am really confused with this exercise
14 messages ยท Page 1 of 1 (latest)
@viral quail
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Import it
ok so how do i do that
The directory in which the file is saved, create another file named
__init__.py
then just import like
from file_path import function_name
file_path, is the path of the file in which your function is present, leave __init__.py blank
so i need to make a new file and put that function in and then import it?
but i dont understand does it want me to import the whole fuction and it doesent tell me to import it it just say it will import it
https://www.youtube.com/watch?v=VEbuZox5qC4
Refer to this
๐ฌ Join my Free Newsletter: https://techwithtim.net/newsletter
๐ Get private mentorship from me: https://training.techwithtim.net
If you've read a fair amount of Python code, then you've probably seen this "init.py" file pop up quite a few times. It's especially common in larger Python projects. I'm going to breakdown exactly what thi...
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.