73122/how-do-you-get-a-list-of-all-the-keys-in-a-dictionary
Hey, @Roshin,
I would like to give you an example so that you understand it better:
For this, we use the function keys():
mydict={'a':1,'b':2,'c':3,'e':5}
mydict.keys()
dict_keys([‘a’, ‘b’, ‘c’, ‘e’])
my_dict = {'one': 'first', 'two': 'second', 'three': ...READ MORE
Hi, it is pretty simple, to be ...READ MORE
Hello, The len() function can be used with several different ...READ MORE
items = [] items.append("apple") items.append("orange") items.append("banana") len(items) #use the ...READ MORE
suppose you have a string with a ...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
>>> x = "Hello World!" >>> x[2:] 'llo World!' >>> ...READ MORE
One thing that is really helpful in ...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.