Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Accenture Interview Questions
→
Accenture Interview Preparation in Accenture Interview Questions
→
What is the difference between dictionary and tupl...
1.
What is the difference between dictionary and tuple in Python?
Answer»
Dictionary
Tuple
A dictionary is an unordered
DATA
collection in which data will be
STORED
in the
FORM
of key-value pairs.
A tuple is an ordered data collection.
Elements are accessed using key values.
Elements are accessed using numeric index values.
Dictionary can have any number of values.
A tuple can have only a pre-defined number of values.
It is
USED
as a
MODEL
object.
It is useful for returning multiple values from a function.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Write a C++ program for generating the Fibonacci series.
What is XML?
What is a map() function in Python?
What is the difference between dictionary and tuple in Python?
What is a classifier in Python?
Can you give differences for the Primary key and Unique key in SQL?
What is normalization in the database?
What is meant by the Friend function in C++?
Explain about getch() function in a C++ program. How it is different from getche() function?
Explain memory allocation process in C.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies