+ 1
do we have to import module only in the start of program?
can i import it in the middle of program?
2 Antworten
0
you can. But it is a convention to import modules at the beginning of a program.
0
Similar to how variables and functions need to be declared or defined before using them in your code, modules need to be imported before using them.