Python Interview Questions- Part II
11. What is the difference between List and Dictionary data types in Python? Ans : Main differences between List and Dictionary data types in Python are as follows: Syntax: In a List we store objects in a sequence. In a Dictionary we store objects in key-value pairs. Reference: In List we access objects by index number. It starts […]
Python Interview Questions- Part II Read More »