It is a method in python that returns a view object which contains of all the values of the dictionary in a list.
Syntax:
dictionary.values()
Don’t know what is keys method in Python? Read: keys() method in Python Dictionary
Example 1:
s = {0:"CodeWindow", 1:"India", 2:"News"}
x = s.values()
print(x)
Output:
dict_values([‘CodeWindow’, ‘India’, ‘News’])
Explanation:
Here it returned a view object all the values of the dictionary in a list.
Example 2:
s = {"site":"CodeWindow", "country":"India", "type":"News", "platform":"IT"}
x = s.values()
print(x)
Output:
dict_values([‘CodeWindow’, ‘India’, ‘News’, ‘IT’])
Explanation:
Here it returned a view object all the values of the dictionary in a list.
You Missed
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- Software Engineering – codewindow.in
- PHP & MySQL – codewindow.in
- PHP & MySQL – codewindow.in
- PHP & MySQL – codewindow.in
- Certificates
- PHP & MySQL – codewindow.in
- PHP & MySQL – codewindow.in
- PHP & MySQL – codewindow.in
- CSS – codewindow.in
- CSS – codewindow.in
- CSS – codewindow.in
- Database Management System – codewindow.in
- Database Management System – codewindow.in
- JQuery – codewindow.in
- JQuery – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
- Database Management System – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
- MongoDB – codewindow.in
Also Checkout
- Adobe
- Ajax
- Algorithm
- Amagi
- Amazon Interview Questions
- Angular JS
- Aptitude
- big data
- Books
- Bridge2i
- C programming
- Campgemini Interview Questions
- Capgemini Coding Questions
- Capgemini Pseudocode
- Celebal Tech
- Cloud Computing
- code nation
- CodeVita
- Coding Questions
- Cognizant Placement
- commvault Systems
- Computer Network
- CSS
- CTS
- Data Science
- Data Structure and Algorithm
- Database Management System
- De Show Interview Questions
- deloitte
- Deutsche Bank Interview questions
- Epam Full Question Paper
- Exxon Mobil interview questions
- filpkart
- Fractal Analytics Interview Questions
- Genpact
- Grab
- GreyB Interview Questions
- Guidance for Accenture
- Gupshup
- HCL Interview Questions
- Hexaware
- HFCL
- HR Questions
- HTML5
- IBM Interview questions
- IBM Questions
- Incture Interview Questions
- Infineon Technologies Interview Questions
- Infosys
- Infosys Interview Questions
- Internship
- Interview Experience
- Interview Questions
- ITC Infotech
- itron
- JavaScript
- JECA
- Job Info
- JQuery
- Kantar Interview Questions
- Larsen & Turbo
- Latenview AnalyticsInterview questions
- Lexmark International Interview Questions
- Machine Learning
- Media.net
- Mindtree Interview Questions
- Miscellaneous
- MongoDB
- Morgan Stanly Interview Questions
- nagarro
- navi
- NodeJS
- NPCI
- NTT Data Interview Questions
- NVDIA
- NVDIA interview questions
- Optum
- PayU
- Persistent INterview Questions
- PHP and MYSQL
- Programming in C
- Programming in C++
- Programming in JAVA
- Programming in Python
- Project
- pseudocode
- PWC Interview Questions
- Python
- Quiz
- Razorpay
- ReactJS
- Recruiting Companies
- Revature
- salesforce
- Samsung
- Schlumberger
- Seimens
- Slice
- Smart Cube
- Software Engineering
- Study Material
- Tally Solutions
- tata cliq
- TCS
- TCS NQT
- TCS NQT Coding Questions
- Tech Mahindra Coding Questions
- Tech Mahindra Questions
- Teg Analytics
- Tejas Network Interview Questions
- Texas Instrument Interview Questions
- Tiger Analytics
- Uncategorized
- UnDosTres
- Unstop
- Verbal Ability
- Web Development
- Wipro Coding Questions
- Wipro interview Questions
- Wipro NLTH
- WIpro NLTH Coding Solve
- Zenser
- Zoho Interview Questions