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")

22nd Apr 2018, 2:06 PM
Chard Astoveza
Chard Astoveza - avatar
1 Answer