Profil

A rejoint le : 18 mai 2022

À propos
0 J'aime reçus
0 Commentaires reçus
0 Meilleur commentaire

~UPD~ Trikker License





Trikker License









Trikker License


Trikker Platinum License Activation 4.0 or higher. No more runtime errors. Trikker 4.0 is fully licensed and activated. Mar 23, 2020 Software information ‎1/5 · ‎Activate Teamviewer · ‎Trikker License ‎2/5 Q: Python: use a conditional for a loop I have these names in list: csv_file = ['1000062_1', '1000062_2', '1000062_3', '1000062_4', '1000063_1', '1000063_2', '1000063_3', '1000063_4', '1000063_5', '1000063_6', '1000063_7', '1000063_8', '1000063_9', '1000063_10', '1000063_11', '1000063_12'] I want to loop through this list, adding all "1" to a variable 'num'. I am using the following code: for i in csv_file: if i[-1] == '1': num = '1' I keep getting this error IndexError: list index out of range Is it because I want to loop through all possible numbers starting at '1'? A: Your code is wrong because for i in csv_file will only get you the first element of csv_file. Try this: num = '' for i in csv_file: if i[-1] == '1': num += '1' Demo: >>> csv_file = ['1000062_1', '1000062_2', '1000062_3', '1000062_4', '1000063_1', ... '1000063_2', '1000063_3', '1000063_4', '1000063_5', '1000063_6', ... '1000063_7', '1000063_8', '1000063_9', '1000063_10', '1000063_11', ...









Trikker License Windows Download Cracked X64 Software .zip


da708f7a06





~UPD~ Trikker License

Plus d'actions