I have a problem with the 3rd case Help plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have a problem with the 3rd case Help plz

x=input() S=x.find('

#x27;) T=x.find('T') N=x[S:T+1] if 'G' in N: print('quiet') else: print ('ALARM') This the code

20th Mar 2020, 5:30 PM
إسلام دخيلي
إسلام دخيلي - avatar
1 Answer
0
Your code appears to assume that '
#x27; must come before 'T' in the input. Does this have to be the case?
20th Mar 2020, 6:04 PM
Russ
Russ - avatar