1
Modules/Functions in Python
Gooftroop21 (0)

https://repl.it/@Gooftroop21/algo2py?language=python3&folderId=

I'm doing some exercises for homework with one of my questions asks me to write a statement that calls the module, passing 12 as an argument.

You are viewing a single comment. View All
1
GavHern (62)

@Gooftroop21 oh, I think I misinterperated what you meant. quantity is local and cant be referenced in other files. The way you reference code in other files is through importing them with import main. (main is an example, if you had bananas.py you would say import bananas).