Prompt: Create a variable that will hold a float. Use the variable to get input from the user. Make sure your question to the user makes sense for collecting a value that is a float.
#Calculate yearly income
monthly_income=3657.55
months=12
yearly_income=months*monthly_income
print(‘please enter your yearly income’)
Well, with the exception of weird quotation marks around the text in the print function, rest of the code doesn’t seem to have anything that might cause the syntax error. So if that’s not it, then unless error says something more it might be hard to help.
I also checked with idle and the problem are the quotes! They are not valid. Try to use “…”
I do not know why you want to enter the yearly income? You have calculate that.
Maybe you want to print it? In that case you have to write: print("The yearly income is {}".format(yearly_income))