Create module

Report a typo

Below there is a custom Python module:

# my_module.py

name = "John"

def printer(x):
    print("Hello,", x)

You have already imported this module into your code:

import my_module

Write a line of the code that will now call the function printer() on the name variable. Mind that both the variable and the function are defined in my_module.py!

Enter a short text
___

Create a free account to access the full topic