2020/20.py
def printtile(tile):
    """Print a tile. If a tile ID is passed, look it up in the TILES dictionary."""
    if isinstance(tile, int):
        tile = TILES[tile]

    for row in tile:
        for col in row:
            print("#" if col else ".", end="")
        print()
Print a tile. If a tile ID is passed, look it up in the TILES dictionary.
Print a tile. If a tile ID is passed, look it up in the TILES dictionary.
Print a tile . If a tile ID is passed look it up in the TILES dictionary .
def printtile(tile):
    if isinstance(tile, int):
        tile = TILES[tile]
    for row in tile:
        for col in row:
            print("#" if col else ".", end="")
        print()
def printtile ( tile ) : if isinstance ( tile , int ) : tile = TILES [ tile ] for row in tile : for col in row : print ( "#" if col else "." , end = "" ) print ( )
Print a tile.
Print a tile .
"""Print a tile. If a tile ID is passed, look it up in the TILES dictionary."""
tile