Tuples in Python

Source code :

mytup=('hello','fellows','this','is')
print (mytup + ('python','tuples','tutorial'))
print(mytup *2)
print(mytup[-3])
print(mytup[2:4])

Output :

('hello', 'fellows', 'this', 'is', 'python', 'tuples', 'tutorial')
('hello', 'fellows', 'this', 'is', 'hello', 'fellows', 'this', 'is')
fellows
('this', 'is')

Output :


                

Comments :