0

Hey can anyone please tell me what's wrong?

https://code.sololearn.com/cKNNjUsO4jQE/?ref=app the codes will run fine individually but when all three are run together.. the last two fail to run and I get a syntax error thanks!

21st Jun 2017, 8:03 AM
Divyanshu Kulratn
Divyanshu Kulratn - avatar
3 odpowiedzi
+ 11
#Indentations and quotes (line 5th) #are used in a wrong way, #here the fixed version: x = 4 if x == 5: print("Yes") else: print("No") y=int(input("enter anythin: ")) if y==4: if y>=3: print("hey you") z=int(input("so who got owned:")) if z<=4: print ("yo i got owned") if z>=4: print("yo i own you") #Uops, @visph is too fast. :(
21st Jun 2017, 8:11 AM
Maz
Maz - avatar
+ 6
@Maz is right, you have also to correct line 5 (closing bracket before quote instead after) and 14 (unexpected space at start)... And as unique input, type: 5 4 3
21st Jun 2017, 8:15 AM
visph
visph - avatar
+ 5
It's due to specific limitation of code playground: if your script ask for more than one user input during execution, you must (mandatory) give ALL the entries at once, separated by new lines (each on a new line), in the input box which pop up when pressing the 'run' button ;)
21st Jun 2017, 8:08 AM
visph
visph - avatar