Quantcast
Channel: Error when I try to import a module - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by DeepSpace for Error when I try to import a module

$
0
0

If you want to import module2 you will need to call function2 this way: module2.funcion2(2,3).

You usually want to avoid from <module> import * so either do as above or from module2 import function2 and then you can simply call function2(2, 3).


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>