Question: In this exercise, you are given a tuple that is called colors colors = (Blue, Green, Orange, Pink, Blue, Yellow) 1. Print the first and

In this exercise, you are given a tuple that is called colors colors = ("Blue", "Green", "Orange", "Pink", "Blue", "Yellow") 1. Print the first and last element of the colors tuple 2. Use a for loop to print each color 3. Use the in operator to check if the color Blue exist in the colors tuple 4. Use the count method to find how many times the color Blue is repeated 5. Use the len function to find the number of elements in the tuple
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
