in this article we'll learn about getting the first item in tuple

syntax

tuple[0]

example


#tuple
animals = ('cat', 'dog', 'zebra', 'shark')

#get last element of tuple python
print(animals[0])

output

cat

English today is not an art to be mastered it's just a tool to use to get a result