CSIT143
CSIT143
P.T.O.
CSIT143 2 FI00
constructs :
(iii) indentation
SECTION -B (20Marks)
Attempt any two questions out of three.
Each question carries 10 marks.
(4)
(i) abs(0
(ii) max()
(ii) divmod)
(iv) pow0
(v) len)
P.T.O.
4 FI00
CSITI43
programming. (4)
a=int(input("Enter a number:"))
if a>b:
step = -1
else:
step =I
while a!=b:
if (atb%2>0):
print(atb,sep-"-")
a=tstep
FI00
5
CSITI43
(4)
(b) Predict the output
text = "abracadabraabbcrr"
counts
ct-0
Ist[)
Ist.append(word)
counts(word]-0
ct-ct+1
counts[word]-counts[word]+I
print(counts)
print(Ist)
P.T.O.
6 FI00
CSITI43