Code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Code coach

I'm unable to see test cases other than 1 and 2 and even if code runs good it fails sometimes.

19th Apr 2020, 5:43 PM
Naveen K R
4 Answers
+ 1
It is the inbuilt setting in SoloLearn so that you can not see the cases and tell anyone who will use it to provide the output
19th Apr 2020, 5:47 PM
Abhiraj Ghumare
Abhiraj Ghumare - avatar
+ 1
Naveen K R can't really say what's wrong with yours. Use this https://code.sololearn.com/cdKOIUGu6SKQ/?ref=app
19th Apr 2020, 6:50 PM
Justus
Justus - avatar
0
I don't know why is this code not passing the challenge named security floor = input() if not ("T" in floor) : print("quiet") exit() T = floor.index("T") M = floor.index("
quot;) floor = list(floor) if (M > T) : floor.reverse() floor ="".join(floor) floorspl = floor.split("
quot;) floorth = floorspl[1] tpos = floorth.index("T") if ("G" in floorth) : gpos = floorth.index("G") if (gpos < tpos) : print("quiet") elif (gpos > tops) : print("ALARM") else : print("ALARM")
19th Apr 2020, 5:52 PM
Naveen K R
0
Oh thanks
20th Apr 2020, 4:31 AM
Naveen K R