Modules/Functions in Python
Gooftroop21 (0)

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
GavHern (81)

@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 you would say import bananas).