MENU
Question -

When do you use list vs. tuple vs. dictionary vs. set?



Answer -

‘List’ is like an array, individual element of list data can be accessed using indexing and can be manipulated. “Tuples” are similar to list, but there data can be changed once created through the execution of program. ‘Set’ stores unordered values and have no index. And unlike Tuples and lists, sets can have no duplicate data. “Dictionary” is similar to what their name is. It consist of pairs of keys and thier corresponding values.

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×