Ask coding questions

← Back to all posts
its not working
YusufsAvange (0)

My code doesnt work, and I cant figure out what to do. I'm a beginner in programming, I just want to code things because i get bored.

Geocube101 (528)

Syntax on Line 9 is incorrect

print("Hello" + firstname + " " + lastname + "\nWelcome to my Pawn Shop")


print("Hello", firstname, lastname, "\nWelcome to my Pawn Shop")

or maybe even

print("Hello {} {}\nWelcome to my Pawn Shop".format(firstname, lastname))
YusufsAvange (0)

@Geocube101 thanks so much for the help, it works now

barrycarter (14)

Might be useful to post a link to your and let us know what language this is?