Hello I'm a noob and just started using python so I wanted to have fun using raw_input
, adding random questions and stuff but I came across an error. It says the invalid syntax is ". I've been trying to put it to different places but didnt succeed I'm sorry if this is a really dumb question but can someone help me out.
Heres a line with the error
print " Oh okay then %s . You came from %s , right? Oh i see you came here to %s" % (name,so,fun)
It's pointing at the closing " next to %s
I'm using atom
edit: heres the error
File "C:\Users\USER\AppData\Local\atom\app-1.26.1\Testing.py", line 10
print " Oh okay then %s . You came from %s , right? Oh i see you came here %s. " % (name, so, fun)
^
SyntaxError: invalid syntax
Heres the full code :
name = raw_input("Hello whats your name?")
so = raw_input("From where did you come from")
fun = raw_input("Interesting, why did you come here?")
#start the sentence with "for"
print " Oh okay then %s . You came from %s , right? Oh i see you came here %s. " % (name, so, fun)
If I can't use raw_input
what can I use then? I learned with using that.