So in the exercise String Formatting Part 2, I completed the exercise, and in full belief I had mastered the concept of the %s function I fired up Notepad++ on my PC and wrote some code of my own and when I executed it via Python on my PC rather than thru CodeCademy's online interpreter, ERROR msg. I had to triple check the code a million times, I saw no mistakes, so I copied the EXACT code from CodeCademy into my Python file, saved it, and ran it. Same problem. Error: "missing parenthesis called to print"
I've check it over and over and it's the EXACT same code that is executing correctly via CodeCademy online Python interpreter. Any explanation for this??
My PC is running Python 3.5.1
The only thing I can think of is maybe the CodeCademy online interpreter is a different version then what im running on my PC. And for whatever reason something in the new version of Python doesn't like the format or syntax of the code below.
TLDR; the code below will execute via codeCademy online, but not in Python itself installed on my PC.
name = raw_input("What is your name?") quest = raw_input("What is your quest?") color = raw_input("What is your favorite color?") print "Ah, so your name is %s, your quest is %s, " \ "and your favorite color is %s." % (name, quest, color)