current_time_str = input("What is the 'current time' (in hours 0-23)?")
wait_time_str = input("How many hours do you want to wait")
current_time_int = int(current_time_str)
wait_time_int = int(wait_time_str)
final_time_int = current_time_int + wait_time_int
print(final_time_int)
The error message points you to line 1 and in this case that is exactly where the error occurs. In this case your biggest clue is to notice the difference in highlighting on the line. Notice that the words βcurrent timeβ are a different color than those around them. Why is this? Because βcurrent timeβ is in double quotes inside another pair of double quotes Python thinks that you are finishing off one string, then you have some other names and finally another string. But you havenβt separated these names or strings by commas, and you havenβt added them together with the concatenation operator (+). So, there are several corrections you could make. First you could make the argument to input be as follows:
"What is the 'current time' (in hours 0-23)"
Notice that here we have correctly used single quotes inside double quotes. Another option is to simply remove the extra double quotes. Why were you quoting βcurrent timeβ anyway?
"What is the current time (in hours 0-23)"