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
Post a Comment