1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | >>> # Ultrabot Loudbot Implementation in Python (ULIP) >>> def loudbot(string): ... if(string.isupper() and len(string) >= 10): ... return True ... else: ... return False ... ... >>> loudbot("test") False >>> loudbot("testwithover10chars") False >>> loudbot("TESTWITHOVER10CHARS") True >>> loudbot("TEST") False >>> loudbot("..........") False >>> loudbot("...........") False >>> loudbot("..........A") True >>> |