0

When is there a syntax error

what's wrong? python https://code.sololearn.com/cwa8266PsraS/?ref=app

8th Jun 2017, 12:36 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar
7 Respostas
+ 6
I'm not sure what you expect, bit just write: print(s) That will print whatever the variable s had (the users input)
8th Jun 2017, 12:38 AM
Rrestoring faith
Rrestoring faith - avatar
+ 6
To print everything put it in the brackets of the print function print("stuff to print")
8th Jun 2017, 12:42 AM
Rrestoring faith
Rrestoring faith - avatar
+ 2
//This takes user input and stores it in a variable named s... s = input("Enter something please: ") //This prints the variable s print(s) print("This prints whatever is in here") print("This prints something plus s: " + s)
8th Jun 2017, 12:45 AM
LordHill
LordHill - avatar
+ 1
oh wait I figured it out. all it wanted me to do was press run, not recreate the entire code.
8th Jun 2017, 12:46 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar
0
I'm brand new to learning python. I was practicing the lesson which is the first string/line? mine is the second one.
8th Jun 2017, 12:41 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar
0
I see what you guys are saying. it's a math equation with text instead of numbers.
8th Jun 2017, 12:48 AM
Fire Breathing Moon Beam
Fire Breathing Moon Beam - avatar
0
syntax error is that when your rules of writing the program is wrong
8th Jun 2017, 3:38 AM
Darshu
Darshu - avatar