- Sep 2020
-
greenteapress.com greenteapress.com
-
Tuples are a sequence of values which can be of any of any type. The key difference between list and tuple is tuples are immutable.Tuples uses built in function like zip,etc.
-
Chapter 11Dictionaries
Dictionaries are like lists and values in dictionaries can be of any type. Every Value is mapped to an key jointly called as key value pair. Dictionaries have various built in functions like invert,etc. In Dictionaries, global variables can be created which can be accessed in function of the program.
-
Lists are sequence of values which are mutable. Lists have many built in methods to perform variety of operations like append,sort,expand,etc. Lists can perform many operations with each other in different ways.
-
Strings are list of characters which are immutable. Strings have many built in methods to perform variety of operations like lower case to upper case,finding of a characters in a string,etc. Strings are comparable with each other in many different ways.
-