TUPLE, An ordered sequence of elements of different datatypes. , INDEXING, accessing elements in a tuple e.g. tuple_name[index no], SLICING, tuple_name[start: stop: step], CREATE A TUPLE WITH SINGLE ELEMENT, Element should be followed by a comma ( element ,), TUPLE NATURE, It is immutable which means it cannot be changed in place after it has been created., TYPE ERROR, tuple[2] =15, CONCATENATION, Tuples can be joined using + symbol, REPETITION, We can repeat the tuple elements using *. , EXTENSION OF A TUPLE, tuple+=(value,), count(), Returns the number of times the given element is present in the tuple, REVERSE OF A TUPLE, tuple_name[ : :-1], sorted(), Takes the element of a tuple and returns a new sorted list., PACKING, s_name= (admno,sname,class,marks), UNPACKING, prin,rate,time = simple_interest, SWAPPING OF 2 NUMBERS, a,b = b,a.

Leaderboard

Estilo ng visual

Mga pagpipilian

Magpalit ng template

)
Ibalik ng awtomatikong pag-save: ?