2. Boolean Category : 1. This category contain only two values True and False 2. The datatype assigned to these values is --bool b1 = True b2 = False print(b1) print(b2) type(b1) #bool type(b2) #bool conversion in to bool The conversion of any data will be done by using bool() x1 = 12 bool(x1) #True x2 = 0 bool(x2) #False bool(99) #True bool(-99) #True Note : Any datavalue other than 0 is termed as True whereas 0 is termed as False 3. None Category --NoneType None Category: 1. It allows a single value i.e., None 2. None means nothing n1 = None print(n1) type(n1) #NoneType 4. Sequential Category : 1. The category of datatypes that makes a variable to hold a collection of values 2. Each value gets index by sharing the name of the variable 3. Python supports two kinds of index -- Positive Indexing: 0 to totalLengthOfSequence - 1 -- Negative Indexing: -totalLengthOfSequence to - 1 -- str : 1. A str datatype is a collection of characters enclosed in ' ', " " ,''' ''' ,""" """ 2. str is immutable or not updatable i.e., once str object is created it can't be changed or increased in size or even decreased in size s1 = 'Python' #Accessing String characters #syntax: sequencename[indexno] s1[2] #'t' s1[-1] #'n' #Access the first element s1[0] #'P' #Access the last element s1[-1] print(s1) s1[0] = 'p' #TypeError: 'str' object does not support item assignment #Accessing multiple elements #syntax: sequencename[starttindex : endindex(exclusive) : step] s2 = 'Python Programming' sequencename[startindex : endindex(exclusive) : step] s2[3:8:2] #'hnP' s2[3:11:2] #'hnPo' s2[3:11:3] #'h o' -- list -- tuple -- range