In this program, we will ask the user to enter any string. Storing the input string in the variable and adding each string character to a list. The first step is to ask the user to input the string, and for that, we will be using the input() function. Create an empty list. We can…More
Tag Archives: List
Program to find even numbers and appending it into a new list
This blog contain program that finds out even number from first list and stored all even elements into a new listMore
Converting string into a list
In this blog, we will create simple program that will take any string as input from user and convert it into a list. Making each character of a string as an individual element in a listMore
Appending new items in a list using while loop
In this blog, we will create a list of 3 elements then use while loop to append new elements in a list. If user input ‘q’ then the while will be terminated and at the last display elements in the listMore
Adding all elements in list
This blog contain program for adding all elements in a listMore
Getting 5 numbers from user. Adding numbers into list and finding the largest number
In this blog, we will ask user to enter any 5 numbers and display the largest numberMore
Program to display elements inside a list in reverse order
This blog explain how to display elements in a list in reverse orderMore
Append, Update and Delete elements in a list
This blogs explain how to update, append and delete element from a listMore
Program to display elements inside a list using for and while loop
This program demonstrate how to display elements inside a list using for and while loopMore