Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Secret Message by Luis_Zamora_Veliz
def find_message(text):
text = text.split(' ')
lista = []
for i in text:
m= i.upper()
for igual in range(len(i)):
if i[igual]==m[igual]:
if i[igual].isalpha()==True:
lista.append(i[igual])
return ''.join(lista)
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert find_message("How are you? Eh, ok. Low or Lower? Ohhh.") == "HELLO", "hello"
assert find_message("hello world!") == "", "Nothing"
assert find_message("HELLO WORLD!!!") == "HELLOWORLD", "Capitals"
Jan. 19, 2017
Comments: