Hello Buddies😍
You gained some knowledge in my previous blog😊. Please share and support my content. So let's start our topic Data Types. In this blog we cover about Sequence Data Type. Sequence general meaning is items or events follows a specific order is called sequence. Example of sequence is Calendar, Time, Queue, etc..,
Sequence Data Types classified into 3 types.
1) String
2) List
3) Tuple
1) String :
Collection of alphabets or any characters include numbers also is called string. So how can we identify a string?. There is way to identify the string is " " or ' ' (Quotes). if anything inside of this quotes is consider as string.
String are not changeable once they are created. They are the on of the built in data type we all know.
2) List :
List is the data structure in python. List are used to store data. For example if we went any super market or buying any product on online we use cart to store our favorite items. Here List also same.
List are mutable( we can access them ), they contain index numbers, and they some built in functions to access the data. List are denoted by [ ]. Below functions are built in functions of List.
3) Tuples:-
Tuples are same like lists to use store data. But the difference is we can not changeable. It is indicated by ( ). Tuple are not changeable right what is the use of these tuple?. It is used to store our passwords once we create our password we can't change. These types situations we use tuples.
Comments
Post a Comment