Mar-27-2018, 10:38 PM
lt = [] tp=(1,2,3,4,5,6,7,8,9,10) for i in tp: if i%2 == 0: lt.append(i) tp2 = tuple(lt) print(tp2)Now it works and I completely understand it. Thank you.
IndexError: tuple index out of range
|
|
Messages In This Thread |
IndexError: tuple index out of range - by Truman - Mar-25-2018, 10:57 PM
RE: IndexError: tuple index out of range - by woooee - Mar-26-2018, 12:50 AM
RE: IndexError: tuple index out of range - by wavic - Mar-26-2018, 02:23 AM
RE: IndexError: tuple index out of range - by Truman - Mar-26-2018, 08:44 PM
RE: IndexError: tuple index out of range - by wavic - Mar-27-2018, 09:27 AM
RE: IndexError: tuple index out of range - by Truman - Mar-27-2018, 10:38 PM
|