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 »
Category: Python
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 »
Finding positive and negative number
We can use python language to create a simple program that identifies whether theĀ number is positive or negative. Read More »