A harder example
What about this code?
def greet(someone):
print('Hello, ' + someon)
greet('Bryan')
when we run this code, we get the following error:
Traceback (most recent call last):
File "/workspaces/Python/learn/finn/hello.py", line 4, in <module>
greet('Chad')
File "/workspaces/Python/learn/finn/hello.py", line 2, in greet
print('Hello, ' + someon)
^^^^^^
NameError: name 'someon' is not defined. Did you mean: 'someone'?