Lists and Loops
Lists and For Loops
In this chapter, we will learn a new datatype called lists. List contains a group of numbers or strings.
Here 'a' is a list datatype.
Now, we will find the sum the list and length of the list.
This throws an error because the elements of the list are not integers rather they are of string datatype. So we need to define the list in a proper way.
Now, let's find the mean of the list.