This variable doesn't exist yet
Your code uses the variable firstname, but it
hasn't been created
yet.
Check line 2. If you meant to print the text firstname, put it in double quotes.
Without speech marks Python treats firstname as a
variable, and this
variable
does not exist yet.
firstname.firstname = "Jo").Suggested fix
firstname = "Jo"
print("Hello, " + firstname)