- 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: break1 Réponse
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')