- my_tuple = [2, ‘apple’, 3.5]
- my_tuple = [2, ‘apple’, 3.5].tuple()
- my_tuple = tup(2, ‘apple’, 3.5)
- my_tuple = (2, ‘apple’, 3.5)
Correct Answer:
- my_tuple = (2, ‘apple’, 3.5)
Which syntax correctly creates a variable that is bound to a tuple?
Correct Answer:
Latest Updates
No posts found in this category.