tuple (x, ) python code example
Example 1: tuples in python
my_tuple = ("hello")
print(type(my_tuple)) # <class 'str'>
# Creating a tuple having one element
my_tuple = ("hello",)
print(type(my_tuple)) # <class 'tuple'>
# Parentheses is optional
my_tuple = "hello",
print(type(my_tuple)) # <class 'tuple'>
Example 2: pyhton tuple
#It's like a list, but unchangeable
tup = ("var1","var2","var3")
tup = (1,2,3)
#Error