- 1

Please correct my python Security challenge code !

floor=input() count=0 for i in range(len(floor)): if floor[i]=='x': continue elif floor[i]=='

#x27; or floor[i]=='T': if count==1: print('ALARM') break else: count+=1 elif floor[i]=='G': if count==1: print('quiet') break else: print('ALARM') break else: break

20th Oct 2021, 8:22 AM
Ravikiran
Ravikiran - avatar
1 Resposta
0
floor = input() d = floor.index('
#x27;) t = floor.index('T') if 'G' in floor[d:t+1] or 'G' in floor[t:d+1]: print('quiet') else: print('ALARM')
3rd Sep 2022, 6:13 AM
Harsha S
Harsha S - avatar