0
Valid codes to surpass error?
mylist=[] mylist.append(100) mylist.append("good") mylist.append(True) print(mylist) mylist[1]=False print(mylist) while mylist != 2: if mylist!=range: try: try: i= mylist[int(input("index:"))] print(i) except ValueError: continue except IndexError: continue print(mylist[int(input("index:"))]) else: print("finished")
1 Answer