I have a simple program that I'm trying to learn in python. I have defined the function as such
>>> def area(base, height):
return base * height /2
when I try to use the function as such
>>> area(3,4)
I am given this error saying that it is not defined.
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
area(3,4)
NameError: name 'area' is not defined
Am I missing a vital step?