Your code correctly:
v = input ('Enter whether you are a veteran or not (Yes or No): ')
if v == "Yes": #(says this is the syntax error)
print("Thank you for your service!")
Here are some highlights:
- strings need to be surrounded by quotes: double (") or single (')
- you need a colon (:) at the end of the if's condition
- to compare equality you need to use two equal signs: ==