r/pythonhelp • • Jan 21 '21

Python+apache, what exactly am i doing wrong, i want HTML to communicate with py and execute the py file and show result?

Post image
2 Upvotes

1 comment sorted by

1

u/ryanrocket Jan 28 '21

You need to define the variable `answer` before your if statement. Your variable only gets created if the car is a volvo, meaning every other time that the car ISNT volvo, the variable is undefined.