Chapter No.: 1, 2
Chapter Name: Python Revision Tour - I & II
i. 18
8. Give theii.output
80 iii. of
44the
iv. following
None of the above
code:
>>> a,b=4,2
>>> a+b**2*10
i. 44 ii. 48 iii. 40 iv. 88
9. Give the output of the following code:
>>> a,b = 4,2.5
>>> a-b//2**2
i. 4.0 ii. 4 iii. 0 iv. None of the
t he above
1
COMPUTER SCIENCE QUESTION BANK CLASS - XII
2
COMPUTER SCIENCE QUESTION BANK CLASS - XII
3
COMPUTER SCIENCE QUESTION BANK CLASS - XII
4
COMPUTER SCIENCE QUESTION BANK CLASS - XII
5
COMPUTER SCIENCE QUESTION BANK CLASS - XII
ii. Augmented
47. What will be theVirtual
output iv. Augmented
of the followingReality
code?
print(“ComputerScience”.spl
print(“Compu terScience”.split(“er”,2))
it(“er”,2))
i. [“Computer”,”Science”]
[“Computer”,”Science”] iii. [“Comput”,”S
[“Comput”,”Science”]
cience”]
ii. [“Comput”,”erScience”]
[“Comput”,”erScience”] iv. [“Comput”,”er”,”Science”]
[“Comput”,”er”,”Science”]
48. Following set of commands are executed in shell, what will be
the output?
>>>str="hello"
>>>str[:2]
i. he ii. lo iii. olleh iv. hello
49. ………..function will always return tuple of 3 elements.
i. index() ii. split() iii. partition() iv. strip()
50. What is the correct python code to display the last four
characters of “Digital India”
i. str[-4:] ii. str[4:] iii. str[*str] iv. str[/4:]
51. Given the list L=[11,22,33,44,55], write the output of
print(L[: :-1]).
:-1]).
i. [1,2,3,4,5] ii. [22,33,44,5
[22,33,44,55]5]
iii. [55,44,33,22,11] iv. Error in code
52. Which of the following can add an element at any index in the
list?
i. insert( ) ii. append( ) iii. extend() iv. all of these
53. Which of the following function will return a list containing all
the words of the given string?
i.split() ii. index() iii. count() iv. list()
6
COMPUTER SCIENCE QUESTION BANK CLASS - XII
d. [1,2,3,4]<[1,2
[1,2,3,4]<[1,2,3,2]
,3,2]iii. a,b,c iv. Only d
i. a,b,d ii. a,c,d
55. If l1=[20,30] l2=[20,30] l3=[‘20’,’30’] l4=[20.0,30.0] then
which of the following statements will not return ‘False’:
a. >>>l1==l2 b. >>>l4>l1 c. >>>l1>l2 d. >>> l2==l2
i. b, c ii. a,b,c iii. a,c,d iv. a,d
56. >>>l1=[10,20,3
>>>l1=[10,20,30,40,50]
0,40,50]
>>>l2=l1[1:4]
What will be the elements of list l2:
i. [10,30,50] ii. [20,30,40,50] iii. [10,20,30] iv. [20,30,40]
57. >>>l=[‘red’,’b
>>>l=[‘red’,’blue’]
lue’]
>>>l = l + ‘yellow’
What will be the elements of list l:
i. [‘red’,’blue’,’yellow’]
[‘red’,’blu e’,’yellow’] ii. [‘red’,’y
[‘red’,’yellow’]
ellow’]
iii. [‘red’,’blue’,’yellow’]
[‘red’,’blue’,’yellow’] iv. Error
58. What will be the output of the following code:
>>>l=[1,2,3,4]
>>>m=[5,6,7,8]
>>>n=m+l
>>>print(n)
i. [1,2,3,5,6,7,8] ii. [1,2,3,4,5,6,7,8]
[1,2,3,4,5,6,7,8]
iii. [1,2,3,4][5,6,7,8] iv. Error
7
COMPUTER SCIENCE QUESTION BANK CLASS - XII
>>>print(n)
i [1,2,3,4,1,2,3,4,1,2,3,4]
[1,2,3,4,1,2,3,4,1,2,3,4] ii. [1,2,3,4,1,2
[1,2,3,4,1,2,3,4,1,2,3,4,1,2,3
,3,4,1,2,3,4,1,2,3,4]
,4]
iii. [1,2,3,4][4,5,6,7]
[1,2,3,4][4,5,6,7] iv. [1,2,3,4]
60. Match the columns: if
>>>l=list(‘computer’)
Column A Column B
1. L[1:4] a. [‘t’,’e’,’r’
[‘t’,’e’,’r’]]
2. L[3:] b. [‘o’,’m’,’p’]
3. L[-3:] c. [‘c’,’o’,’m’
[‘c’,’o’,’m’,’p’,’u’,’t’]
,’p’,’u’,’t’]
4. L[:-2] d. [‘p’,’u’,’
[‘p’,’u’,’t’,’e’,’r’]
t’,’e’,’r’]
i. 1-b,2-d,3-a,4-c
1-b,2-d,3-a,4-c iii. 1-c,2-b,3-a,4-d
1-c,2-b,3-a,4-d
ii. 1-b,2-d,3-c,4-a iv. 1-d,2-a,3-c,4-b
61. If a list is created as
>>>l=[1,2,3,’a’,[‘apple’,’green
>>>l=[1,2,3,’a’,[‘ap ple’,’green’],5,6,7,[‘red
’],5,6,7,[‘red’,’orange’
’,’orange’]] ]]
then what will be the output of the following statements:
>>>l[4][1]
i. ‘apple’ ii. ‘red’ iii. ‘green’
‘green’ iv. ‘orange’
‘orange’
62. >>>l[8][0][2]
i. ‘d’ ii. ‘r’ iii. ‘e’ iv. ‘o’
63. >>>l[-1]
i. [‘apple’,’green’] iii. [‘red’,’orange’]
ii. [‘red’ ] iv. [’orange’]
64. >>>len(l)
i. 10 ii. 8 iii. 9 iv. 11
8
COMPUTER SCIENCE QUESTION BANK CLASS - XII
i. [1,2,3,5,6]
66. What will be theii. [1,2,3,[5,6]]
[1,2,3,[5,6]] iii.
output of the [[5,6]] iv.
following [1,2,3,[5,6]]
code:
>>>l1=[1,2,3]
>>>l2=[5,6]
>>>l1.extend(l2)
>>>l1
i. [5,6,1,2,3] ii. [1,2,3,5,6] iii. [1,3,5] iv.
i v. [1,2,3,6]
67. What will be the output of the following code:
>>>l1=[1,2,3]
>>>l1.insert(2,25)
>>>l1
i. [1,2,3,25] ii. [1,25,2,3] iii. [1,2,25,3] iv. [25,1,2,3,6]
68. >>>l1=[10,20
>>>l1=[10,20,30,40,50,60,10
,30,40,50,60,10,20,10]
,20,10]
>>>l1.count(‘10’)
i. 3 ii. 0 iii. 2 iv. 9
69. Which operators can be used with list?
i. in ii. not in iii. both (i)&(ii) iv. Arithmetic operator only
70. Which of the following function will return the first occurrence
of the specified element in a list.
i. sort() ii. value() iii. index() iv. sorted()
71. Which of the statement(s) is/are correct.
i. Python dictionary is an ordered collection of items.
ii. Python dictionary is a mapping of unique keys to values
iii. Dictionary is mutable.
iv. All of these.
9
COMPUTER SCIENCE QUESTION BANK CLASS - XII
i.
iii.print(tup[3]) ii. tup[2]=55
print(max(tup)) iv. print(len(tup))
74. Consider two tuples given below:
>>>tup1=(1,2,4,3)
>>>tup2=(1,2,3,4)
What will the following statement print(tup1<tup2)
i. True ii. False iii. Error iv. None of these
75. Which function returns the number of elements in the tuple
i. len( ) ii. max( ) iii. min( ) iv. count( )
76. Which function is used to return a value for the given key.
i. len( ) ii. get( ) iii. keys( ) iv. None of these
77. Keys of the dictionary must be
i. similar ii. unique iii. can be similar or unique iv. All of these
78. Which of the following is correct to insert a single element in a
tuple .
i. T=4 ii. T=(4) iii. T(4,) iv. T=[4,]
79. Which of the following will delete key-value pair for key=’red’
form a dictionary D1
i. Delete D1(“red”) ii. del. D1(“red”)
iii. del D1[“red”] iv. del D1
80. Which function is used to remove all items form a particular
dictionary.
i. clear( ) ii. pop( ) iii. delete iv. rem( )
81. In dictionary the elements are accessed through
i. key ii. value iii. index iv. None of these
82. Which
i. key(function will )return
) ii. values( key-value
iii. items( pairs
) iv. get( ) of the dictionary
10
COMPUTER SCIENCE QUESTION BANK CLASS - XII
11
COMPUTER SCIENCE QUESTION BANK CLASS - XII
statement he should
i. >>>t+(60)
>>>t+(60) ii. use
>>>tout
+ of
60 the
iii.given
>>>t four.
+ (60,) iv. >>>t + (‘60’)
92. Rahul wants to delete all the elements from the tuple, which
statement he should use
i. >>>del t ii. >>>t.clear()
iii. >>>t.remove()
>>>t.remove() iv. >>>None of these
93. Rahul wants to display the last element of the tuple, which
statement he should use
i. >>>
>>> t.display()
t.display() ii. >>>t.pop()
iii. >>>t[-1] iv. >>>t.last()
94. Rahul wants to add a new tuple t1 to the tuple t, which statement
he should use
i. >>>t+t1 ii. >>>t.add(t1)
iii. >>>t*t1
>>>t*t1 iv. None of these
95. Rahul has issued a statement after that the tuple t isi s replace with
empty tuple, identify the statement he had issued out of the
following:
i. >>> del t ii. >>>t= tuple()
iii. >>>t=Tuple()iv. >>>delete t
96. Rahul wants to count that how many times the number 10 has
come:
i. >>>t.count(10)
>>>t.count(10) ii. >>>t[10]
iii. >>>count.t(10)
>>>count.t(10) iv. N
None
one of these
97. Rahul want to know that how many elements are there in the
tuple t, which statement he should use out of the given four
i. >>>t.count()
iii. >>>count(t) ii.
iv.>>>len(t)
>>>t.sum()
12
COMPUTER SCIENCE QUESTION BANK CLASS - XII
98. >>>t=(1,2,3,4)
Write the statement should be used to print the first three elements 3
times
i. >>>print(t*3) ii. >>>t*3
iii. >>>t[:3]*3
99. Match the outputiv. >>>t+t
with the statement given in column A with
column B.
1. >>>tuple([10
>>>tuple([10,20,30])
,20,30]) a. >>> (10,20,30
(10,20,30))
2. >>>(“Tea”,)* 3 b. >>> 2
3. >>>tuple(“Ite
>>>tuple(“Item”)m”) c. >>> ('Tea', 'Tea', 'Tea')
4. >>>print(len(
>>>print(len(tuple([1,2])
tuple([1,2]))))) d. >>> ('I', 't', 'e', 'm')
i. 1-b,2-c,3-d,4-a
1-b,2-c,3-d,4-a ii. 1-a,2-c,3-d,4-b
1-a,2-c,3-d,4-b
iii. 1-c,2-d,3-a,4-a
1-c,2-d,3-a,4-a iv. 1-d,2-a,3
1-d,2-a,3-b,4-c
-b,4-c
100. Write the output of the following code:
>>>d={‘name’:’rohan’,’dob’:’2002-03-11’,’Marks’:’98’}
>>>d1={‘name’:‘raj’)
>>>d1=d.copy()
>>>print(“d1 :”d1)
i. d1 : {'name': 'rohan', 'dob': '2002-03-11', 'Marks': '98'}
ii. d1 = {'name': 'rohan', 'dob': '2002-03-11', 'Marks': '98'}
iii. {'name': 'rohan', 'dob': '2002-03-11', 'Marks': '98'}
iv. (d1 : {'name': 'rohan', 'dob': '2002-03-11', 'Marks': '98'})
13
COMPUTER SCIENCE QUESTION BANK CLASS - XII
a, b == 0b)
if (a
a +b = c
print(c)
3. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
250 = Number
WHILE Number<=1000:
if Number=>750
print (Number)
(Number)
Number=Number+100
Number=Num ber+100
else
print( Number*2)
Number*2)
Number=Number+50
Number=Num ber+50
14
COMPUTER SCIENCE QUESTION BANK CLASS - XII
for C in range(1,Val,3)
Adder+=C
if C%2=0:
Print (C*10)
Else:
print (C*)
print (Adder)
5. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
25=Val
for I in the range(0,Val)
if I%2==0:
print( I+1):
Else:
print [I-1]
6. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
STRING=""WELCOME
NOTE""
for S in range[0,8
range[0,8]:
]:
print (STRING(S))
(STRING(S))
15
COMPUTER SCIENCE QUESTION BANK CLASS - XII
c=int(input("EN
c=int(input("ENTER
if a>b and a>c TER THIRD NUMBER"))
print("A IS GREATER")
GREATER")
if b>a and b>c:
Print(" B IS GREATER")
if c>a and c>b:
print(C IS GREATER)
GREATER)
8. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
i==1
a=int(input("ENTER FIRST NUMBER"))
FOR i in range[1, 11];
print(a,"*=", i ,"=",a
,"=",a * i)
9. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
a=”1”
while a>=10:
print("Value of
of a=",a)
a=+1
16
COMPUTER SCIENCE QUESTION BANK CLASS - XII
10. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
Num=int(rawinput("Numb
Num=int(raw input("Number:"))
er:"))
sum=0
for i in range(10,Num,3)
Sum+=1
if i%2=0:
print(i*2)
Else:
print(i*3 print
print Sum)
11. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
weather='raining'
if weather='sunny':
weather='sunny':
print("wear sunblock")
sunblock")
elif weather='snow':
weather='snow':
print("going
print("goin g skiing")
else:
print(weather))
print(weather
12. Write the modules that will be required to be imported to
execute the following code in Python.
def main( ):
for i in range (len(string)) ):
if string [i] = = ‘’ “
print
else:
c=string[i].upper()
print( “string is:”,c)
print (“String length=”,len(math.floor()))
length=”,len(math.floor()))
17
COMPUTER SCIENCE QUESTION BANK CLASS - XII
13. Observe the following Python code very carefully and rewrite it
after removing all syntactical errors with each correction underlined.
DEF execmain():
x = input("Enter a number:")
if (abs(x)=x):
print ("You entered a positive
positive number")
else:
x=*-1
print "Number
"Number made positiv
positive:"x
e:"x execma
execmain()
in()
14. Rewrite the following code in python after removing all syntax
error(s).Underline each correction done in the code
x=integer(input('Enter 1 or 10'))
if x==1:
for x in range(1,11)
Print(x)
Else:
for x in range(10,0,-1):
print(x)
15. Rewrite the following code in python after removing all syntax
error(s). Underline each correction done in the code.
30=To
for K in range(0,To)
IF k%4==0:
print (K*4)
else
print (K+3)
16. What will be the error of the following code Snippet?
Lst =[1,2,3,4,5,6
=[1,2,3,4,5,6,7,8,9]
,7,8,9]
Lst[::2]=10,20,30,40,50,60
Print[Lst]
18
COMPUTER SCIENCE QUESTION BANK CLASS - XII
17. Find the error in following code. State the reason of the error
aLst={‘a’:1,’b’:2,’c’:3}
print(aLst[‘a’,’b’])
print(aLst[‘a’ ,’b’])
18. What will be the output of the following Code Snippet?
aprint(a[3:0
= [1,2,3,4,5]
=[1,2,3,4,5]
print(a[3:0:-1])
:-1])
19. What do you mean by scope of variables?
20. Differentiate between the round( ) and floor( ) functions with the
help of suitable example.
19
COMPUTER SCIENCE QUESTION BANK CLASS - XII
3. Find outx=20
the output of the Following –
x=x+5
x=x-10
print (x)
x, y=x-1,50
print (x, y)
4. Find out the output of the Following –
for a in range(3,10,3):
for b in range(1,a,2):
print(b, end=’ ‘)
‘)
print( )
5. FIND OUTPUT OF FOLLOWING
x=10
y=5
for i in range(x-y*2):
print("%",i)
20
COMPUTER SCIENCE QUESTION BANK CLASS - XII
whileprint(x[c]
c<len(x):,y[c])
print(x[c],y[c])
c=c+1
7. Find output generated by the following code:
for i in range(-1,7,2):
for j in range(3):
print(i,j)
8. Find output generated by the following code:
string=”aabbcc”
count=3
while True:
if string[0]=='a':
string[0]=='a':
string=string[2:]
elif string[-1]=='b':
string[-1]=='b':
string=string[:2]
else:
count+=1
break
print(string)
print(count)
9. Find output generated by the following code:
x="hello world"
print(x[:2],x[:-2],x[-2
print(x[:2] ,x[:-2],x[-2:])
:])
print(x[6],x[2:4])
print(x[6] ,x[2:4])
print(x[2:-3],x[-4:-2
print(x[2:-3 ],x[-4:-2])
])
21
COMPUTER SCIENCE QUESTION BANK CLASS - XII
10. Find and write the output of the following python code:
Msg1="WeLcOME"
Msg2="GUeSTs"
Msg3=""
for I if
in Msg1[I]>="A"
range(0,len(Msg2)+1):
and Msg1[I]<="M":
Msg3=Msg3+Msg1[I]
elif Msg1[I]>="N" and Msg1[I]<="Z":
Msg1[I]<="Z":
Msg3=Msg3+Msg2[I]
else:
Msg3=Msg3+"*"
print (Msg3)
11. Find and write the output of the following python code :
def Changer(P,Q=10):
P=P/Q
Q=P%Q
print (P,"#",Q)
return P
A=200
B=20
A=Changer(A,B)
print (A,"$",B)
B=Changer(B)
print (A,"$",B)
A=Changer(A)
print (A,"$",B)
22
COMPUTER SCIENCE QUESTION BANK CLASS - XII
12. Find and write the output of the following python code:
Data = ["P",20,"R",10,"S",30]
["P",20,"R",10,"S",30]
Times = 0
Alpha = ""
Add
for C=in0 range(1,6,2):
Times= Times + C
Alpha= Alpha + Data[C-1]+"$"
Add = Add + Data[C]
print (Times,Add,Alpha)
(Times,Add,Alpha)
13. Find and write the output of the following python code:
Text1="AISSCE 2018"
Text2=""
I=0
while I<len(Text1):
I<len(Text1):
if Text1[I]>="0" and Text1[I]<="9
Text1[I]<="9":
":
Val = int(Text1[I])
Val = Val + 1
Text2=Text2 + str(Val)
elif Text1[I]>="A" and Text1[I] <="Z":
Text2=Text2 + (Text1[I+1])
else:
Text2=Text2 + "*"
I=I+1
print (Text2)
23
COMPUTER SCIENCE QUESTION BANK CLASS - XII
14. Find and write the output of the following python code:
TXT = ["20","50","30","40"]
CNT = 3
TOTAL = 0
for CTin=[7,5,4,6]:
TXT[CNT]
TOTAL = float (T) + C
print(TOTAL))
print(TOTAL
CNT-=1
15. Find output generated by the following code:
line = "I'll come by then."
eline = ""
for i in line:
eline += chr(ord(i)+3)
print(eline)
16. Find output generated by the following code:
line = "What will have so will"
L = line.split('a')
for i in L:
print(i, end=' ')
17. Find output generated by the following code:
p=5/2
q=p*4
r=p+q
p+=p+q+r
q-=p+q*r
print(p,q,r)
24
COMPUTER SCIENCE QUESTION BANK CLASS - XII
d=12 % b,
print(a, 5 *c,3d)+ (2 * 6) // 4
19. Find the output of the following:
def main( ) :
Moves=[11, 22, 33, 44]
Queen=Moves
Moves[2]+=22
L=len(Moves)
for i in range (L):
print ("Now@",
("Now@", Queen[L-i-1],
Queen[L-i-1], "#", Moves [i])
main()
20. Find the output of the following
L1 = [100,900,300,400,500]
START = 1
SUM = 0
for C in range(START,4):
SUM = SUM + L1[C]
print(C, ":", SUM)
SUM)
SUM = SUM + L1[0]*10
print(SUM)
25
COMPUTER SCIENCE QUESTION BANK CLASS - XII
21. Find and write the output of the following python code:
def fun(s):
k=len(s)
m=" "
for i in range(0,k):
if(s[i].isupper()):
m=m+s[i].lower()
elif s[i].isalpha():
m=m+s[i].upper()
else:
m=m+'bb'
print(m)
fun('school2@com')
22. Find the output of the give program :
def Change(P ,Q=30):
P=P+Q
Q=P-Q
print( P,"#",Q)
return (P)
R=150
S=100
R=Change(R,S)
print(R,"#",S)
S=Change(S)
23. Find the output of the give program :
x = "abcdef"
i = "a"
while i in x:
print(i, end = " ")
")
26
COMPUTER SCIENCE QUESTION BANK CLASS - XII
list[2:5]=[]
print(list)
25. Give the output of the following code:-
l1=[13,18,11,16,13,18,13]
print(l1.index(18))
print(l1.index (18))
print(l1.count(18))
print(l1.coun t(18))
l1.append(l1.count(13))
print(l1)
26. Find the error in following code. State the reason of the error.
aLst = { ‘a’:1 ,’ b’:2, ‘c’:3 }
print (aLst[‘a’,’b’])
(aLst[‘a’,’b’])
27. Find the error in following code. State the reason of the error.
list1 =[1998, 2002, 1997, 2000]
list2 =[2014, 2016, 1996, 2009]
print"list1 + list 2 = : ", list1
list1 +list2 #statement
#statement 1
print"list1 * 2 = : ", list1 *2 #statement 2
28. What is the output of the following:?
list1 = [1, 2, 3, 4, 5]
list2 =list1
list2[0] =0;
print("list1= : ", list1)
list1)
29. What is the output of the following:
data = [2, 3, 9]
temp = [[x forx in[data]]
for x in range(3)]
print(temp)
27
COMPUTER SCIENCE QUESTION BANK CLASS - XII
sum += 20
print (sum)
28
COMPUTER SCIENCE QUESTION BANK CLASS - XII
my_dict = {}
my_dict[1] = 1
my_dict['1'] = 2
my_dict[1.0]] = 4
my_dict[1.0
sum = 0
for k in my_dict:
sum += my_dict[k]
print (sum)
38. What will be the output of the following Code Snippet?
my_dict = {}
my_dict[(1,2,4)] = 8
my_dict[(4,2,1)] = 10
my_dict[(1,2)] = 12
sum = 0
for k in my_dict:
sum += my_dict[k]
print (sum)
print(my_dict)
print(my_dict)
39. What will be the output of the following expression:
print(24//6%3,, 24//4//2, 20%3%2)
print(24//6%3 20%3%2)
40. Rearrange the following operators in Highest to Lowest Priority.
% , or, ==, not, =
29
COMPUTER SCIENCE QUESTION BANK CLASS - XII
30
COMPUTER SCIENCE QUESTION BANK CLASS - XII
print(t4[i])
else:
for i in range (3,6):
print(t4[i])
2. t5=("sun",2,"tue",4,"thru",5)
t5=("sun",2,"tue",4,"thru",5)
if "sun" not in t4:
for i in range (0,3):
print(t5[i])
else:
for i in range (3,6):
print(t5[i])
3. t6=('a','b')
t7=('p','q')
t8=t6+t7
print(t8*2)
5. Find the errors:
1. t1=(10,20,3
t1=(10,20,30,40,50,60,70
0,40,50,60,70,80)
,80)
t2=(90,100,110,120)
t3=t1*t2
Print(t5[0:12:3])
2. t1=(10,20,3
t1=(10,20,30,40,50,60,70
0,40,50,60,70,80)
,80)
i=t1.len()
Print(T1,i)
3. t1=(10,20,3
t1=(10,20,30,40,50,60,70
0,40,50,60,70,80)
,80)
t1[5]=55
t1.append(90)
print(t1,i)
31
COMPUTER SCIENCE QUESTION BANK CLASS - XII
4. t1=(10,20,3
t1=(10,20,30,40,50,60,70
0,40,50,60,70,80)
,80)
t2=t1*2
t3=t2+4
print t2,t3
5. t1=(10,20,3
t1=(10,20,30,40,50,60,70
0,40,50,60,70,80)
,80)
str=””
str=index(t1(40))
print(“index of
of tuple is ”, str)
str=t1.max()
print(“max item
item is “, str)
32