Python Python Basics Types and Branching If, Else and Elif

Jamaal Brown
Jamaal Brown
Python Web Development Techdegree Student 781 Points

SyntaxError: invalid syntax on line 3 with colon after "Craig": Code looks just like the screen.

Here is the line of code. Should be the same on the screen at 6:01

          <p>first_name = input("What is your first name?   ")
print("Hello,", first_name)
if first_name == "Craig":
   print(first_name, "is learning Python")
print("Have a great day {}!".format(first_name))</p>
          ```
Jamaal Brown
Jamaal Brown
Python Web Development Techdegree Student 781 Points

Strange. I retyped in the same line of code and it worked fine.

          <p>first_name = input("What is your first name?   ")
print("Hello,", first_name)
if first_name == "Craig":
   print(first_name, "is learning Python")
print("Have a great day {}!".format(first_name))</p>
          ```