The fruit

Report a typo

Let's say a friend of yours has a tuple containing all fruits they have tasted ranged from the most to the least favorite ones. You can't see the tuple itself but want to know at which position "pineapple" is placed because you would like to buy a few for your party. How can you get the position of this string in the tuple fruit? Write the line of code below.

Write a program in Python 3
# the tuple "fruit" is already defined
position = ...
___

Create a free account to access the full topic