EDIT:

Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along.

I have a dict with the following pairs:

object = {'v1': 1, 'e5': 6}

If I set a variable using this data and print it:

var = object['v1']
print var

I get the following output:

[1]

I simply get 1

I would also avoid using object as a variable name since it is a built in term for the basic Python object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.