So I have this python code that I\'m to run in my mac\'s terminal but when I try running it with python in the terminal it gives me a syntax error on line 27 like so:
self.data = raw_input(‘Enter Pressure,Temperature,WindDirection:’)
This should be;
self.data = raw_input('Enter Pressure,Temperature,WindDirection:')
or
self.data = raw_input("Enter Pressure,Temperature,WindDirection:")
You're using wrong quotes.
It's your quotes. They're funny. Delete them and enter normal ones.
Instead of ASCII single or double quotes you're using U+2018 and U+2019 here, hence the syntax error.
Wrong quotes here as well:
event.split(“,”)