Python Basics: Modules and Packages

0%

Say you have the following module in the myproject/ folder:

Python adder.py
def add(x, y):
    return x + y

In another file in the same folder, you write the following code:

Python main.py
value = add(2, 2)
print(value)

What will IDLE return when you run the module main.py?

Select one:

Sorry! There has been an error processing your answer. Please try again.

Got feedback on this question?