0

Security TestCase 1 fail but works fine in my IDE and code playground.

My code (link below) works fine and outputs correctly for test case 1 in my IDE and "code playground"..but in the code-coach code section it fails..implying there's an error in one of my "re.findall" statements? https://code.sololearn.com/cTjH4UoEQP4y/#py (if the link doesn't work...I'll post the actual code here.) Anyone have any ideas?

4th Jan 2020, 10:57 PM
rodwynnejones
rodwynnejones - avatar
3 Respostas
+ 1
it's "quiet" not "Quiet". you have a typo.
4th Jan 2020, 11:28 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
@bahha Thanks for spotting it but... it still failed the test case.....oh well... never mind.
4th Jan 2020, 11:34 PM
rodwynnejones
rodwynnejones - avatar
0
Have a look at the information in the security code coach.. there is only one money location... only one thief... but any number of guards ( I assume at least one...didn't consider none) Your example "x$xGxTx
quot; has two money locations.
5th Jan 2020, 12:19 AM
rodwynnejones
rodwynnejones - avatar