
# Python tuple() : returns a tuple.
# the tuple() builtin can be used to create tuples in Python

# tuple(iterable)

# e.g. create tuples using tuple()

t1 = tuple()
print('t1 =', t1)

# creating a tuple from a list
t2 = tuple([1, 4, 6])
print('t2 =', t2)

# creating a tuple from a string
t1 = tuple('Python')
print('t1 =', t1)

# creating a tuple from a dictionary
t1 = tuple({1: 'one', 2: 'two'})
print('t1 =', t1)





































