สถานะการส่งล่าสุด: -

SOS11: Aa-ragok Cipher

Aa-ragok Cipher

Aa-ragok the wise,
he writes and cite cryptic texts,
for his own secrets.

Objective

Write a program to decipher Aa-ragok's ancient texts, where these rules applies:

  • You are required to use list comprehension! (Any for-statements will break the program)
  • The texts can be any number of lines.
  • Each line should have 10 alphabets and an index number.
  • You should get each character in each line by using index number.

Below is how it should work,

Cipher Demo

Output

Your decipher function should return a list of characters that are corresponded to each line. For example,

>>> decipher(texts)
['a', 'i', 'r']

Code

# This is a sample piece of texts that is transliterated from above picture.
# Use this variable as a reference to how the list(s) work.
sample_texts = [["a","b","c","d","e","f","g","h","i","j",0],
                ["b","w","i","o","e","j","s","m","k","l",2],
                ["m","e","w","i","n","u","d","x","c","r",9]]

# Make sure to make equal spaces inside the def block.
def decipher(texts):
print("".join(decipher(texts)))  # Don't need to care about this line, its for testing.