There is a dictionary in the list, and I want to extract this value only, so can I know how to do it?
abc = [
"Number one"
"Number 2"
"Number 3"
{"pc" : "i7-10700", "info" : {"price" : "KRW 100000", "year of release" : "2022"} ,
]
abc[3]
{'pc': 'i7-10700', 'info': {'price': 'KRW 100000', 'year of release': '2022'}}
The value of 'i7-10700'
, {'price': 'KRW 100000', 'launch year': '2022'}
Is there a way to extract this?
abc[3].values()
abc[3].keys()
['pc', 'info']
abc[3].values()
['i7-10700', {'Price': 100000 won', 'Released year': 2022'}]
abc[3]['info'].values()
["100,000 won", 2022]
596 GDB gets version error when attempting to debug with the Presense SDK (IDE)
884 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
567 Who developed the "avformat-59.dll" that comes with FFmpeg?
606 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.