Home>
How to retrieve python list
From the list below,
house = [["hallway", 11.25],
["kitchen", 18.0],
["living room", 20.0],
["bedroom", 10.75],
["bathroom", 9.50]]
the hallway is 11.25 sqm
I want to output in the form of
My code
↓↓↓
for name in house:
print ("the" + str (name) + "is" + str (house) + "sqm")
I want to know how to take each value in house.
-
Answer # 1
Related articles
- python - how to list and represent line graphs
- python - how to share a list
- python - i want to know how to keep outputting to csv
- python - i don't know how to put out the sum of the matrix
- python - i don't know how to do css select in bs4
- python - about 2d list
- python - i want to retrieve the element above the element searched by soupfind_all in beautiful soup
- python - how to delete an apostrophe in the list
- python hdf5 how to add to saved data (how to use mode ='a')
- python - how to use tensorflow placeholder
- python - get member list with discord bot
- python - how to design a refactoring/class
- how to count days of the week python
- i want to retrieve a cell value from python
- how to run python 386 on windows
- python - combination/multiplication of list elements
- python 3x - manipulating python list
- python - i don't know how to use wait_for_motion () and wait_for_no_motion ()
- python - how to use nltk bleu score
- python 3x - i want to convert to str list float list
Trends