words = ["alfa", "bravo", "charlie", "delta", "echo", "foxtrot", "golf", "hotel", "india", "juliett", "kilo",
"lima", "mike", "november", "oscar", "papa", "quebec", "romeo", "sierra", "tango", "uniform", "victor", "whiskey", "xray", "yankee", "zulu"]
choices = []
picking = True
print("Input the word you want to be tuned into the NATO phonetic")
while picking:
    inp = input().lower()
    for k in inp:
        for i in words:
            if i[0] == k:
                choices.append(i)

    l = 0
    print("Would you like to end? yes/no")
    ooo = input().lower()
    if ooo == "yes":
        picking = False
    else:
        print("Make your selection.")

print(choices)
keypad =   [[1, 2, 3],
            [4, 5, 6],
            [7, 8, 9],
            [" ", 0, " "]]
def print_matrix3(matrix):
    for i in matrix:
        print(*i)
    
print_matrix3(keypad)
1 2 3
4 5 6
7 8 9
  0  
date = "2005/09/13"
keyboard = [["`", 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "-", "="],
            ["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]"],
            ["A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'"],
            ["Z", "X", "C", "V", "B", "N", "M", ",", ".", "/"]]

res = [[str(ele) for ele in sub] for sub in keyboard]
res = str(res)

for k in date:
    for i in res:
        if i[0] == k:
            print(i,end="")
2005/09/13
date = "2005/09/13"
keyboard = [["`", 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "-", "="],
            ["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]"],
            ["A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'"],
            ["Z", "X", "C", "V", "B", "N", "M", ",", ".", "/"]]

def print_matrix2(matrix):
        for row in matrix:  # Iterates through each "row" of matrix. Row is a dummy variable, it could technically be anything. It iterates through each value of matrix and each value is it's own list. in this syntax the list is stored in "row".
            for col in row:  # Iterates through each value in row. Again col, column, is a dummy variable. Each value in row is stored in col.
                if date.find(str(col)) > 0:
                    print(col, end=" ") # Same as 1
                else:
                    print(" ", end=" ")
            print() # Same as 1
print_matrix2(keyboard)
  1   3   5       9 0     
                        
                      
                  /