I am trying to define a function in python but I am getting an error, here is the code,
def func greet_user():
"""Display a simple greeting."""
print("Hello!")
greet_user()
Then I get the error, "invalid syntax" . Any help would be appreciated.
def funcis not valid; just writedef. And strings are delimited with either one quote character, or three - you can't use two.