33706/i-have-a-dictonary-in-python-how-to-access-the-value-field
I have a dictionary like this
dic={"car":["limo","sedan"]}.
How can I access the sedan value here?
dic={"car":["limo","sedan"]}
print (dic.keys()) <-----------------------Fetch the key "car"
print (dic['car'][0]) <------------------------Fetch limo
print (dic['car'][1]) <------------------------Fetch sedan
If you want to find the value ...READ MORE
i have textfile now i want to ...READ MORE
Hi @Mike. First, read both the csv ...READ MORE
Hey, Web scraping is a technique to automatically ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE