0

Can I import something inside a function?

If I have same function in un'other file, can I put ' import ... ' directly inside them just to not forget it in the code? My doubt is that it should cause problems for exemple when I call that function more times.

15th Dec 2020, 7:31 PM
IL THE BOVO
IL THE BOVO - avatar
1 Answer
0
just have both files in the same directory. you can then import one file to the other and use its functions/methods
15th Dec 2020, 9:36 PM
Slick
Slick - avatar