Apr-02-2020, 05:12 AM
Hi everyone,
I have a file who is named 16_module.py
I would like to use some function from it. So i use import within my current script file

so I use instead
I tried
any ideas ?
I have a file who is named 16_module.py
I would like to use some function from it. So i use import within my current script file
import 16_modulebut this is not working as python see it as a number with an ending thousand separator

so I use instead
importlib.import_module('16_module')The import seem working but I cannot call it later on
print(16_module.myfunction())
Output:invalid decimal literal
same problem here the thoushand separator..I tried
importlib.import_module('16_module') as testbut this is not accepting the AS ....
any ideas ?
![[Image: NfRQr9R.jpg]](https://i.imgur.com/NfRQr9R.jpg)