"""Print two ways of constructing a lookup for a fictional member ID.

This demonstration only prints text. It does not open a database,
execute SQL, or return a member's name. Read the printed statement
and the separate tuple to see where the submitted value appears.
"""


def show(label, value):
    pasted = "SELECT name FROM members WHERE id = " + value
    print(label)
    print("pasted text: " + pasted)
    print("bound statement: SELECT name FROM members WHERE id = ?")
    print("bound tuple: " + repr((value,)))


def main():
    show("worked", "3")
    show("activity", "8")


if __name__ == "__main__":
    main()
