An example of Read values into a list is:
#!/usr/bin/python
list1 = ['math', 'chemistry', 1995, 2001];
list2 = [1, 2, 3, 4, 5, 6, 7 ];
print "list1[0]: ", list1[0]
print "list2[1:5]: ", list2[1:5]
<h3>What is Python Lists?</h3>
This is known to be a list that is seen as the a most versatile in terms of datatype that are known to be available in Python.
It is one that can be written as a list of comma-separated values that is found in between square brackets.
Note that the most Important thing about a list is that all the items in a list are ones that do not require to be of the same type.
Hence Creating a list is very simple to do and it is done by putting a lot of comma-separated values in between square brackets.
Therefore, An example of Read values into a list is:
#!/usr/bin/python
list1 = ['math', 'chemistry', 1995, 2001];
list2 = [1, 2, 3, 4, 5, 6, 7 ];
print "list1[0]: ", list1[0]
print "list2[1:5]: ", list2[1:5]
Learn more about python list from
brainly.com/question/24232863
#SPJ1