List insert(index, obj) Method

In Python Built-In List insert(index, obj) method is used to inserts object obj into list at offset index. Syntax: There are 2 Parameters used in the list index(index, obj) method:  obj Shows the object to be inserted in the list. index Shows where the object obj to be inserted. Example:

List pop() Method

In Python Built-In List pop() method is used to removes and return the last object from the given list. Syntax: There is 1 Parameter used in the list pop() method: obj An optional parameter, and the index of the object to be removed from the given list. Example:

List remove(obj) Method

In Python Built-In List remove(obj) method is used to search for the given element in the list and removes the first matching element from the list. Syntax: There is 1 Parameter used in the list remove(obj) method: obj Object to be removed from the given list. Example:

List reverse() Method

In Python Built-In List reverse() method is used to reverse objects of the given list in place. Syntax: No Parameter is used in list reverse() method. Example:

List sort() Method

In Python Built-In List sort() method is used to sort objects of given list, and use compare func if given. Syntax: No Parameter is used in list sort() method. Example:

Tuple cmp() Function Python 2 and 3

In Python 2 Built-In Tuple cmp() function is used to compare 2 elements in the given Tuple. Syntax: There are 2 parameters used in Tuple cmp() Function: tuple1 The first list to be compared and tuple2 The second list to be compared. Example: Tuple cmp() Function Python 3 In Python 3, the cmp function does not exists and the … Read more

Tuple max(tuple) Function

In Python Built-In tuple max(tuple) function is used to return the elements from the given tuple with maximum value. Syntax: There is 1 Parameter used in tuple max(tuple) Function: tuple from which max value to be returned. Example:

Tuple min(tuple) Function

In Python Built-In tuple min(tuple) function is used to returns the elements from the given tuple with minimum value. Syntax: There is 1 Parameter used in tuple min(tuple) Function: tuple from which min value to be returned. Example:

Java AWT

Java AWT stands for Abstract Window Toolkit. It is Java API that is used to create Graphical User Interface GUI in platform independent environment. Java AWT is used to create window based applications in Java language. Java AWT components are platform-dependent that means the components are displayed according to the view of OS. AWT is … Read more

Tuple tuple(seq) Function

In Python Tuple tuple(seq) function takes types of the sequence and converts them to Tuple. Simply used to convert the list into a tuple. Syntax: There is 1 Parameter used in Lists list(seq) Function: seq A tuple to be converted into the list. Example: