Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
1name = input()
2pairs = input().split()
3book = {pairs[i]: pairs[i+1] for i in range(0, len(pairs), 2)}
4print(book.get(name, "Not found"))
Output: