0

why task 2 and 3 is not working

this question is from code coach (security) secure=input() max_secure=secure.replace("x","") if "TG

quot; or "$GT" in max_secure : print("quiet") else: print("ALARM")

20th Jul 2020, 5:57 PM
Somil Khandelwal
4 Antworten
+ 3
Somil Khandelwal , your code doesn't check where are the money, the guard and the thief in terms of position. It just check if the string contains two string combinations without considering where are they placed related to each other. I think you need different approach.
20th Jul 2020, 6:10 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
what is wrong with my code
20th Jul 2020, 6:01 PM
Somil Khandelwal
20th Jul 2020, 6:16 PM
Somil Khandelwal