Exercise: From List to Tuple
Use some of the elements of a list to make a tuple.
We'll cover the following
Problem statement
You are given a list called my_list
. Using this list, you are required to create a tuple called my_tuple
. The tuple will contain the list’s first element, last element, and the length of the list in that same order.
Sample input
Get hands-on with 1400+ tech skills courses.