What is the difference between string,list and dictionary in python with each explanation thnxx
Answers
Answered by
3
Answer:
string are colection or setmof characters. any number of valid characters into a set of quotation marks. it is immutable type i.e which cannot change their value in place.
lists represent a list of comma-separated values of any datatype between square brackets. it is mutable i.e which can change their value in place.
dictonary is unordered set of comma-separated key:value pairs, within { }. it is mutable type in which values can be changed.
Similar questions
Math,
6 months ago
Math,
6 months ago
Social Sciences,
1 year ago
Physics,
1 year ago
Accountancy,
1 year ago