String Function

String Function:
The following are the function of the string:
1. Python String capitalize() Converts first character to Capital Letter
2.Python String center() Pads string with specified character
3.Python String casefold() converts to casefolded strings
4.Python String count() returns occurrences of substring in string
5.Python String endswith() Checks if String Ends with the Specified Suffix
6.Python String expandtabs() Replaces Tab character With Spaces
7.Python String encode() returns encoded string of given string
8.Python String find() Returns the index of first occurrence of substring
9.Python String format() formats string into nicer output
10.Python String index() Returns Index of Substring
11.Python String isalnum() Checks Alphanumeric Character
12.Python String isalpha() Checks if All Characters are Alphabets
13.Python String isdecimal() Checks Decimal Characters
14.Python String isdigit() Checks Digit Characters
15.Python String isidentifier() Checks for Valid Identifier
16.Python String islower() Checks if all Alphabets in a String are Lowercase
17. Python String isnumeric() Checks Numeric Characters
18.Python String isprintable() Checks Printable Character
19.Python String isspace() Checks Whitespace Characters
20.Python String istitle() Checks for Titlecased String
21.Python String isupper() returns if all characters are uppercase characters
22.Python String join() Returns a Concatenated String
23.Python String ljust() returns left-justified string of given width
24.Python String rjust() returns right-justified string of given width
25.Python String lower() returns lowercased string
26.Python String upper() returns uppercased string
27. Python String swapcase() swap uppercase characters to lowercase; vice versa
28.Python String lstrip() Removes Leading Characters
29. Python String rstrip() Removes Trailing Characters
30.Python String strip() Removes Both Leading and Trailing Characters
31.Python String partition() Returns a Tuple
32.Python String maketrans() returns a translation table
33.Python String rpartition() Returns a Tuple
34.Python String translate() returns mapped charactered string
35.Python String replace() Replaces Substring Inside
36.Python String rfind() Returns the Highest Index of Substring
37.Python String rindex() Returns Highest Index of Substring
38.Python String split() Splits String from Left
39.Python String rsplit() Splits String From Right
40. Python String splitlines() Splits String at Line Boundaries
41.Python String startswith() Checks if String Starts with the Specified String
42.Python String title() Returns a Title Cased String
43.Python String zfill() Returns a Copy of The String Padded With Zeros
44.Python String format_map() Formats the String Using Dictionary
45.Python any() Checks if any Element of an Iterable is True
46.Python all() returns true when all elements in iterable is true
47.Python ascii() Returns String Containing Printable Representation
48.Python bool() Converts a Value to Boolean
49.Python bytearray() returns array of given byte size
50.Python bytes() returns immutable bytes object
51.Python compile() Returns a Python code object
52.Python complex() Creates a Complex Number
53.Python enumerate() Returns an Enumerate Object
54.Python filter() constructs iterator from elements which are true
55.Python float() returns floating point number from number, string
56.Python input() reads and returns a line of string
57.Python int() returns integer from a number or string
58.Python iter() returns iterator for an object
59.Python len() Returns Length of an Object
60.Python max() returns largest element
61.Python min() returns smallest element
62.Python map() Applies Function and Returns a List
63.Python ord() returns Unicode code point for Unicode character
64.Python reversed() returns reversed iterator of a sequence
65.Python slice() creates a slice object specified by range()
66.Python sorted() returns sorted list from a given iterable
67.Python sum() Add items of an Iterable
68.Python zip() Returns an Iterator of Tuples

Translate »