I looked through all the similar questions, but could not find the one that corresponded to my situation (or maybe one, but I'm new to programming).
The Python version I'm using is 2.7.4, and I get an error in my program on line 11: NameError: global name 'opp' is not defined
I wanted to make a calculator for floor sizes. Here is my code:
def oppervlakte(): global lengte global br global opp lengte = raw_input("Voer de lengte in: ")
Since I got an answer, I want to share it with you, here it is:
def oppervlakte(): lengte = raw_input("Voer de lengte in: ")
source share