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
You can simply the built-in function in ...READ MORE
yes, you can use "os.rename" for that. ...READ MORE
>>> import datetime >>> datetime.datetime.now() datetime(2018, 25, ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.