For Loop at Python -


my goal create for-loop code return output following:

list(indicator.values())[0], list(indicator.values())[1], list(indicator.values())[2], list(indicator.values())[3], ... ... list(indicator.values())[98], list(indicator.values())[99], 

however when run code below, receive error message 'typeerror: 'int' object not iterable'. how can fix can intended result?

x = 100 item in x:     list(indicator.values())[item] 

use code:

x = 100 item in range(x):     print(list(indicator.values())[item])] 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -