Functions are group of statement created to perform specific task. There are several built in functions in Python such as print() to display output, sqrt() for calculating square root.
Read More »Category: Python
Finding biggest element from a list
Python provides max() function for finding biggest element from a list.
max() function returns a biggest element from a list.
There is also other way of finding biggest element from a list instead of using max() function. We can apply some logic to find biggest element from a list.
Read More »Printing element of list using while and for loop
In this blog, we will use while and for loop to display every elements of a list. For while loop, we need to make use of len() function. Read More »
Appending new element into a list
Elements in a list are changeable or mutable that means elements can be deleted, adding new element at the end of a list or updating current value of element with new one. Read More »
Displaying last element from a list
List is a collection of items which are arranged in ordered manner. We can access each element of a list using index number. Each element in a list has an index number. This index number starts with 0. First element in a list will have index number 0, second element will have index number 1 and so on.Read More »
Creating simple list
In this blog, we will create a simple list. Displaying complete list and first element of a list.Read More »
String Repetition
We can use * operator to repeat string n number of times. Below is the syntax for repeating string. Read More »
List in Python
List is use to store group of items or elements. List is similar to an array but there is a difference between them. Array is use to store elements of same data type whereas list is use to store elements of different data types.Read More »