Tuple = ("d",12,"s34","34!")
>>> Tuple1 = "f","g","d",12
>>> type(Tuple)
<class 'tuple'>
>>> type(Tuple1)
<class 'tuple'>
>>> print(Tuple[2])
s34
>>> print(Tuple[:])
('d', 12, 's34', '34!')
>>> print(Tuple[1:3])
(12, 's34')
>>> print(Tuple[1:6])
(12, 's34', '34!')
>>> print(Tuple[11])
Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    print(Tuple[11])
IndexError: tuple index out of range
>>> print(Tuple[-1])
34!
>>> print(Tuple[-1:-3])
()
>>> T1 = (20)
>>> type(T1)
<class 'int'>
>>> T2 = 30
>>> T3 = 30,
>>> type(T3)
<class 'tuple'>
>>> T4 = (45,)
>>> type(T4)
<class 'tuple'>
>>> T5 = "e"
>>> type(T5)
<class 'str'>
>>> T6 = "e,"
>>> type(T6)
<class 'str'>
>>> t7 = "e",
>>> type(t7)
<class 'tuple'>
>>> T8 = (100,200,300,400,500)


>>> T8_new = (50,) + T8[1:]
>>> print(T8_new)
(50, 200, 300, 400, 500)
>>> T8[:4] + (600,)
(100, 200, 300, 400, 600)
>>> T8[:] + (700,)
(100, 200, 300, 400, 500, 700)
>>> Length = len(T8)
>>> print(Length)
5
>>> print(T8[Length])
Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    print(T8[Length])
IndexError: tuple index out of range
>>> print(T8[Length -1])
500
>>> Day = ("Saturday","sunday","monday")
>>> count = 0
>>> print("Today is: ",Day[count])
Today is:  Saturday
>>> Class = ("math","physic","chemistry","Arabic")
>>> Class1 = (("Math1","Math2","Math3"), ("Physics1","Physics2"),"chemistry","Arabic")
>>> len(Class1)
4
>>>  Class2 = (("Math1",("book1")),("Math2",("book2")),("Math3",("book3")), ("Physics1","Physics2"),"chemistry","Arabic")
 
SyntaxError: unexpected indent
>>> Class2 = (("Math1",("book1")),("Math2",("book2")),("Math3",("book3")), ("Physics1","Physics2"),"chemistry","Arabic")
>>> Class1[1]
('Physics1', 'Physics2')
>>> type(Class1)
<class 'tuple'>
>>> Class1[1][0]
'Physics1'
>>> Class1[-2]
'chemistry'
>>> Class1[-2][-4]
's'
>>> TT = Class1 + Class2
>>> print(TT)
(('Math1', 'Math2', 'Math3'), ('Physics1', 'Physics2'), 'chemistry', 'Arabic', ('Math1', 'book1'), ('Math2', 'book2'), ('Math3', 'book3'), ('Physics1', 'Physics2'), 'chemistry', 'Arabic')
>>> len(Class2)
6
>>> len(TT)
10
>>> TTT = Class2 + Class1
>>> print(TTT)
(('Math1', 'book1'), ('Math2', 'book2'), ('Math3', 'book3'), ('Physics1', 'Physics2'), 'chemistry', 'Arabic', ('Math1', 'Math2', 'Math3'), ('Physics1', 'Physics2'), 'chemistry', 'Arabic')
>>> Tuple_New = ("a","b","c")
>>> Tuple_New*2
('a', 'b', 'c', 'a', 'b', 'c')
>>> ("hi!",)*5
('hi!', 'hi!', 'hi!', 'hi!', 'hi!')
>>> T1 = ("a","b","c")
>>> T2 = (1,2,3)
>>> T3 = T1,T2
>>> print(T3)
(('a', 'b', 'c'), (1, 2, 3))
>>> len(T3)
2
>>> "a" in T1
True
>>> "a" in T2
False
>>> "ab" not in T1
True
>>> 3 not in T2
False
>>> "b" in T3
False
>>> T1.index("c")
2
>>> T1.count("b")
1
>>> T1.count("D")
0
>>> T1.count("B")
0
>>> T1.index("D")
Traceback (most recent call last):
  File "<pyshell#70>", line 1, in <module>
    T1.index("D")
ValueError: tuple.index(x): x not in tuple
>>> alphabet = ("a","b","c","d")
>>> len(alphabet)
4
>>> first,second,third,fourth = alphabet
>>> alphabet[2]
'c'
>>> third
'c'
>>> alphabet1 = ("a","c","d","b")
>>> first,third,fourth,second = alphabet1
>>> fourth
