Python DataBase Access

The database is a collection of tables related to each other via columns. For most real-world projects, a database is very important. To create, access, and manipulate data we can use SQL (Structured Query Language).To avoid redundancy of data we can also use normalization. For Python database Access programming, Python supports many database servers such … Read more

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 len(tuple) Function

In Python Built-In Tuple len(tuple) function is used to returns the number of elements in the given tuple. Syntax: There is 1 Parameter used in Tuple len(tuple) Function: list for which the number of elements to be counted. Example:

Lists cmp() Function

In Python Built-In Lists cmp() function is used to compare 2 elements in the given list. Syntax: There are 2 parameters used in Lists cmp() Function : list1 The first list to be compared and list2 The second list to be compared. Example:

List len(list) Function:

In Python Built-In List len(list) function is used to returns the number of elements in the given list. Syntax: There is 1 Parameter used in Lists len(list) Function: list for which the number of elements to be counted. Example:

List max(list) Function:

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

List min(list) Function:

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

List append(obj) Method

In Python Built-In List append(obj) method is used to append a passed obj into the existing list. Syntax: There is 1 Parameter used in list append(obj) method: obj Shows the object to be appended in the list. Example:

List count(obj) Method

In Python Built-In List count(obj) method is used to returns the count of how many times obj occurs in the given list. Syntax: There is 1 Parameter used in list count(obj) method: obj Shows the object to be counted in the list. Example: