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.

Commentshotnewtop
Geocube101 (246)

Syntax on Line 9 is incorrect
Try:

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

or

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 (12)

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