Python Modules and Packages

0%

Fill in the blanks:

Assume you have a Python file named greet.py with the following content:

Python greet.py
greeting = "Hello, World!"

def greet(name):
    print(f"Hello {name}!")

You can import this module in a REPL session and access its contents as follows:

>>>  greet

>>> 
'Hello, World!'

>>> ("Sookie")
Hello Sookie!

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

Got feedback on this question?