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

ANNEXURE - 1 · Part 2

Chapter 4: 6 · COMPUTER SCIENCE

returns reversed iterator of a sequence round() rounds a floating point number to ndigits places. set() returns a Python set setattr() sets value of an attribute of object slice() creates a slice object specified by range() sorted() returns sorted list from a given iterable staticmethod() creates static method from a function str() returns informal representation of an object sum() Add items of an Iterable super() Allow you to Refer Parent Class by super type() Returns Type of an Object vars() Returns attribute of a class () Advanced Function Called by import II. String Functions Function Description capitalize() Converts first character to Capital Letter casefold() converts to casefolded strings center() Pads string with specified character count() returns occurrences of substring in string encode() returns encoded string of given string endswith() Checks if String Ends with the Specified Suffix expandtabs() Replaces Tab character With Spaces find() Returns the index of first occurrence of substring format() formats string into nicer output () Formats the String Using Dictionary index() Returns Index of Substring input() reads and returns a line of string int() returns integer from a number or string isalnum() Checks Alphanumeric Character isalpha() Checks if All Characters are Alphabets isdecimal() Checks Decimal Characters isdigit() Checks Digit Characters isidentifier() Checks for Valid Identifier islower() Checks if all Alphabets in a String are Lowercase isnumeric() Checks Numeric Characters isprintable() Checks Printable Character isspace() Checks Whitespace Characters 12th Std - CS EM Annexure - - istitle() Checks for Titlecased String isupper() returns if all characters are uppercase characters join() Returns a Concatenated String ljust() returns left-justified string of given width lower() returns lowercased string lstrip() Removes Leading Characters maketrans() returns a translation table partition() Returns a Tuple replace() Replaces Substring Inside rfind() Returns the Highest Index of Substring rindex() Returns Highest Index of Substring rjust() returns right-justified string of given width rpartition() Returns a Tuple rsplit() Splits String From Right rstrip() Removes Trailing Characters slice() creates a slice object specified by range() split() Splits String from Left splitlines() Splits String at Line Boundaries startswith() Checks if String Starts with the Specified String

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 →