You are on page 1of 3

S No Name Function Name Task of the Function

1 String len() Returns the length of the string


2 String lower() Returns the given string in the lowercase
3 String upper() Returns the given string in the upppercase
4 String split() It will split the given string into the list of substrings based on the specified delimiter
5 String capitalize() converts the first character to the uppercase
6 String join() converts the elements of an iterable into a string
7 String replace() returns a string where a specified value is replaced with a specified value
8 String swapcase() swap cases, where upper case becomes lower case and vice versa
9 String strip() Returns a trimmed version of a string
10 String startswith() Returns True if the string startswith specified value
11 String endswith() Returns False if the string endswith specified value
12 String find() searches a string for a specified value and returns the position of it where it is found
13 String index() searches a string for a specified value and returns the position of it where it is found
14 String count() Returns the number of times a specified values occurs in a string
15 String isalnum() Returns True if all characters in the string are alphanumeric
16 String isalpha() Returns True if all characters in the string are Alphabets
17 String isnumeric() Returns True if all characters in the string are Numeric
18 String casefold() converts string into lowercase
19 String center() Returns a centered string
20 String encode() Returns an encoded version of a string
21 String expandtabs() sets the tab size of the string
22 String format() formats specified values in a string
23 String format_map() formats specified values in a string
24 String isascii() Returns True if all the characters in the string are ascii characters
25 String isdecimal() Returns True if all the characters in the string are decimal
26 String isidentifier() Return True if the string is an identifier
27 String isdigit() Return True if all the characters in the string are digits
28 String lstrip() Returns left trim version of the string
29 String rstrip() Returns right trim version of the string
30 String isupper() Return True if the all characters in String are in uppercase
31 String isspace() Returns True if all the characters in the String are whitespaces
32 String translate() Returns a translated String
33 String title() Converts the first letter of each word to upper case
34 String splitlines() splits the string at the line break and returns a list
35 String translate() Returns the translated String
36 String rsplit() It will split the string into a list from right side
37 List append() It will add the element to the end of the list
38 List extend() Adds the elements of a list at the end of the current list
39 List len() Returns the No. of elements in the list
40 List del() It will delete the complete list
41 List clear() It will remove all the items from the list
42 List pop() It will remove the element of llist at the specified position
43 List copy() Returns a copy of the list
44 List count() Returns the occurence of an specified element from the list
45 List index() Returns the index of the first element with the specified value
46 List insert() Adds an element at the specified position
47 List remove() Removes the first item with the specified value
48 List reverse() Reverses the order of the list
49 List sort() It will sorts the list
50 Tuple count() Returns the number of times a specified values occurs in a tuple
51 Tuple index() Return the first index of the specified value from the tuple
52 Set add() Adds an element to the set
53 Set clear() Removes all the elements from the set
54 Set copy() Returns a copy of the set
55 Set intersection() Returns a set, that is the intersection of two or more sets
56 Set union() Returns a set containing the union of sets
57 Set difference() Returns a set, that is containing the difference of two or more sets
58 Set difference_update() Removes the items in the set,that are also included in the other, specified set
59 Set discard() Remove the specified item
60 Set intersection_update() Removes the items in the set that are not present in the other, specified set
61 Set isdisjoint() Returns whether, two sets have intersection or not
62 Set issubset() Returns whether another set contains this set or not
63 Set issuperset() Returns whether this set contains other set or not
64 Set pop() Removes an element from the list
65 Set remove() Removes the specified element
66 Set symmetric_difference() Returns a set with symmetric difference of two sets
67 Set symmetric_difference_update() inserts the symmetric differences from this set and another
68 Set update() Update the set with another set, or any other iterable
69 Dictionary clear() It removes all the elements from the dictionary
70 Dictionary copy() Returns a copy of the dictionary
71 Dictionary fromkeys() Returns a dictionary with specified key and values
72 Dictionary get() Returns the value of the specified key
73 Dictionary items() Returns a list containing the tuples for each key value pair
74 Dictionary keys() Returns a list containing all the keys of the dictionary
75 Dictionary pop() Removes the element with specified key
76 Dictionary popitem() Removes the last inserted key-value pair
77 Dictionary setdefault() Returns the value of the specified key, if key does not exist: insert the key with the specified value
78 Dictionary update() Updates the dictionary with specified key-value pairs
79 Dictionary values() Returns the list of all the values of dictionary

You might also like