def get_soccer_passcodes(passcode_list): skip_index = [i for i, code in enumerate(passcode_list) if "pre-indicative" in code]; researches = [passcode for i, passcode in enumerate(passcode_list) if i not in skip_index]; if not researches: print("no valid passcodes, start from square one to gather more data."); else: print(f"valid soccer passcodes ready for use: {', '.join(researches)}")