import scrython import time query = input("Type the name of the set: ") time.sleep(0.05) sets = scrython.sets.Sets() for i in range(sets.data_length()): if sets.set_name(i) == query: print("Set code:", sets.set_code(i).upper()) break else: continue