16,311 questions
21,782 answers
573 users
dict = { "name": "Tom", "age": 47, "langauge": "python", "company": "microsoft"} valuesList = list(dict.values()) print(valuesList) ''' run: ['Tom', 47, 'python', 'microsoft'] '''
dict = { "name": "Tom", "age": 47, "langauge": "python", "company": "microsoft"} valuesList = [dict[key] for key in dict] print(valuesList) ''' run: ['Tom', 47, 'python', 'microsoft'] '''