📖 generic · 12th TN - English Medium · COMPUTER SCIENCE · Page 333question

ANNEXURE - 1 · Part 3

Chapter 4: 6 · COMPUTER SCIENCE

strip() Removes Both Leading and Trailing Characters swapcase() swap uppercase characters to lowercase; vice versa title() Returns a Title Cased String translate() returns mapped charactered string upper() returns uppercased string zfill() Returns a Copy of The String Padded With Zeros III. List Functions Function Description append() Add Single Element to The List clear() Removes all Items from the List copy() Returns Shallow Copy of a List count() returns occurrences of element in a list extend() Add Elements of a List to Another List index() returns smallest index of element in list insert() Inserts Element to The List list() Function creates list in Python pop() Removes Element at Given Index remove() Removes Element from the List reverse() Reverses a List slice() creates a slice object specified by range() sort() sorts elements of a list 12th Std - CS EM Annexure - - IV. Tuple Functions Function Description count() returns occurrences of element in a tuple index() returns smallest index of element in tuple slice() creates a slice object specified by range() tuple() Function Creates a Tuple zip() Returns an Iterator of Tuples V. Set Functions Function Description add() adds element to a set clear() remove all elements from a set copy() Returns Shallow Copy of a Set difference() Returns Difference of Two Sets () Updates Calling Set With Intersection of Sets discard() Removes an Element from The Set frozenset() returns immutable frozenset object intersection() Returns Intersection of Two or More Sets () Updates Calling Set With Intersection of Sets isdisjoint() Checks Disjoint Sets issubset() Checks if a Set is Subset of Another Set issuperset() Checks if a Set is Superset of Another Set pop() Removes an Arbitrary Element remove() Removes Element from the Set set() returns a Python set () Returns Symmetric Difference () Updates Set With Symmetric Difference union() Returns Union of Sets update() Add Elements to The Set.

VI. Dictionary Functions Function Description clear() Removes all Items copy() Returns Shallow Copy of a Dictionary dict() Creates a Dictionary fromkeys() creates dictionary from given sequence get() Returns Value of The Key items() returns view of dictionary's (key,

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →