I'm working on the rock, paper, scissors game (hw_1, ex 1.7) and I've written some code which I think should work, just using basic if / elif / else blocks. Once I have got it to work I will write something more elegant (or at least shorter) but I'm not able to run the module. I get the following error: "EOL while scanning string literal" and the (empty) line at the end of my code is highlighted. Can anybody tell me what the error means and what is missing in my code? http://pastebin.com/jFWWtUSv
try change at the end ” with " print "This is not a valid object selection” with print "This is not a valid object selection"
what does "with" do? I tried changing print "This is not a valid object selection" to with print "This is not a valid object selection" But it still doesn't work unfortunately, it highlights the word 'print' and says there is a syntax error.
change---> print "This is not a valid object selection” with --> print "This is not a valid object selection" you have wrong character at the and of line (”) instead of (")
ok! great, thanks!
Join our real-time social learning platform and learn together with your friends!