+ 6

I was solving security code coach program but im not able to solve for loop problem,how can i fix it.

s=input() in range(100) thief=0 money=0 guard=0 leng=len(s) for i in range(0,leng,1) if s[i]=='T' thief=i if s[i]=='G' guard=i if s[i]=='

#x27; money=i if money<guard and guard<thief: print("quiet") elif thief<guard and guard<money: print("quit") else: print("ALARM")

12th Jun 2020, 6:28 AM
Varun N
Varun N - avatar
5 odpowiedzi
+ 2
Rithea Sreng but it shows only syntax error near for loop
12th Jun 2020, 6:51 AM
Varun N
Varun N - avatar
+ 2
Ok where do i have to change indentation
12th Jun 2020, 6:54 AM
Varun N
Varun N - avatar