Python problem; code from codecatemy to sololearn "code playground"
Hello; I try to learn python; i use 2 website Codecademy and Sololearn. why do when I put the code from Codecademy exercise into the Sololearn code playground, nothing work ? exemple : EXERCICE 1 my_string = "stringgggg" print len(my_string) print my_string.upper() * Codecademy result : [code] 10 STRINGGGGG [/code] * Sololearn result : [code] File "..\Playground\", line 2 print len(my_string) ^ SyntaxError: invalid syntax [/code] EXERCICE 2 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) * Codecademy result : -console ask the 3 question then print the string wit the answer as "%s" - * Sololearn result : [code] File "..\Playground\", line 5 print "Ah, so your name is %s , your quest is %s , " \ ^ SyntaxError: Missing parentheses in call to 'print' [/code] What's wrong ? is the code from codecademy not "real python" code ?