Do they know a tuple/list/dict when they see it?
Submitted by: AdministratorDictionaries are consisting of pair of keys and values.like {'key':'value'}.
book={'cprog':'1024','c++':'4512'}
Keys are unique but values can be same. The main difference between list and tuple is you can change the list but you cannot change the tuple. Tuple can be used as keys in mapping where list is not.
Submitted by: Administrator
book={'cprog':'1024','c++':'4512'}
Keys are unique but values can be same. The main difference between list and tuple is you can change the list but you cannot change the tuple. Tuple can be used as keys in mapping where list is not.
Submitted by: Administrator
Read Online Python Job Interview Questions And Answers
Top Python Questions
☺ | When do you use list vs. tuple vs. dictionary vs. set? |
☺ | What is python? |
☺ | What are uses of lambda? |
☺ | What is the optional statement used in a try except statement in Python? |
☺ | Do they know a tuple/list/dict when they see it? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |