2. Given the following list, write a snippet of code that would print the individual elements of the list using the indexes of the elements. my_list = [‘Rain fell from blue sky’, ’while I was having coffee,’, ‘procrastinating’]

Respuesta :

ijeggs

Answer:

my_list = ["Rain fell from blue sky", "while I was having coffee,", "procrastinating"]

print(my_list[0])

print(my_list[1])

print(my_list[2])

Explanation:

Using Python Programming language:

Since the given list contains three string elements, the indexes are from 0-2

The print function can then be used to print elements are specific indexes as given above

ACCESS MORE
EDU ACCESS