Ask Question

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']

+1
Answers (1)
  1. 4 February, 12:29
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “2. Given the following list, write a snippet of code that would print the individual elements of the list using the indexes of the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers