0

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]
2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by vegaseat
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.