0

I am trying to get the only element in a python list of dictionary. If I do:

{{k.value}}

I get

[{'value_type': 2L, 'value_as_double': 74.0}]

How do I get just the 74?

agf
178k45 gold badges300 silver badges241 bronze badges
asked Aug 10, 2011 at 20:57

1 Answer 1

2

Try {{ k.value.0.value_as_double }}.

answered Aug 10, 2011 at 20:59
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.