Exercise: Correctly return value from function
We have a valid function definition here but something is missing. Adjust the code so that the message 'Hello World' is printed.
def func():
text = 'Hello World'
# add code here
print(func())
# expected output: 'Hello World'
Python
Setting up Python environment...
Output