] JHF=[{dishes: 'green pepper shredded meat, price:' 15 yuan '}, {dishes: 'kung pao chicken, price:' 10 yuan '}]
Print (" menu: ")
For r in JHF:
Print ([menu], '\' 000, [price])
[/code]
How to print the name and price, please!!!!!!
Online etc.!!!!!!
Very urgent!!!!!!
CodePudding user response:
R is a dictionary
For r in JHF:
Print (r [' dishes'], r [' price '])