0

help me solve this

https://www.sololearn.com/coach/77?ref=app text= input() sub_string1= 'T

#x27; sub_string2 = '$T' sub_string3='G$G' list = [] for i in text: if( i != 'x'): list.append(i) text1 = ''.join(map(str,list)) a=(text1 .find (sub_string1 )) b= (text1 .find (sub_string2 )) c=(text1 .find (sub_string3 )) if(a != -1 ): print ("ALARM") elif(b != -1): print ("ALARM") elif(c == -1): print ("ALARM") else: print ("quite") it is satisfying only 3 test cases .I don't what is the mistake rest of cases are hidden,I tried using 'and ' 'or' conditions also but the result is same

2nd Apr 2020, 4:42 AM
satya sri
satya sri - avatar
3 Answers
+ 2
1- print("quiet") not quite 2- You don't need substring_3 at all. Remove elif(c==-1) That's it
2nd Apr 2020, 4:50 AM
Kevin ★
+ 2
Also you shouldn't use list as a variable name because it's already a built-in of the language.
2nd Apr 2020, 4:53 AM
Kevin ★
+ 1
ok tq
2nd Apr 2020, 4:54 AM
satya sri
satya sri - avatar