Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
7-liner, simple solution in Clear category for Cipher Map by kdim
from typing import List
def recall_password(grille: List[str], password: List[str]) -> str:
s = ''
for n in range(4):
s += ''.join([password[i][j] * (grille[i][j] == 'X') for i in range(4) for j in range(4)]) # get chars
grille = [i[::-1] for i in zip(*grille)] # turn grille
return s
Jan. 28, 2021
Comments: