Crear una tupla
pythonCopy>>> x = ("Python")
>>> print(type(x))
<class 'str'>
Shy Skunk
pythonCopy>>> x = ("Python")
>>> print(type(x))
<class 'str'>
var product = ("MacBook", 1099.99)
pythonCopy>>> x = (3, 'pink', 3+8j)
>>> print('x[0] =', x[0])
x[0] = 3
>>> print('x[0:2] =', x[0:2])
x[0:2] = (3, 'pink')
>>> x[0] = 4
TypeError: 'tuple' object does not support item assignment
pythonCopy>>> x = "Python",
>>> print(type(x))
<class 'tuple'>