x อยู่ใน globals() หรือ locals() เมื่อคำสั่งมีทั้ง globals() และ locals()

if __name__ == "__main__":

    x = makeThread("Thread 1", thread_function, ThreadKeyArg = "PersonalKey\n")
    xx = makeThread("Thread 2", thread_function, ThreadIDArg = 11111)
    xxx = makeThread("Thread 3", thread_function, ThreadKeyArg = "AnotherPersonalKey\n")
    xxxx = makeThread("Thread 4", thread_function, ThreadIDArg = 1234)
if x in locals() or globals():
    print("something")