Reputation: 270
I have values that looks like this: [1287963] . They are extracted from a dictionary:
for key, val in plots[key].items():
print(val,count)
I need to display it like this 1287963
Upvotes: 0
Views: 49
Reputation: 274
As val appears to be a list, access to its first elements (i.e. your number) val[0]. This should return your number.
Upvotes: 4