Course: B.
Tech Bronch: cs2 1T
Subject: Rinon [Link] Sub Code : BcC- Bo2.
Year Sem: 3d
TUTORIAL: 03
Dis cuss vaYious ilerohion tatements n pythan.
Desuss Syntax of whia loop with simple exonple
code in pyhon.
Q3 bis wss syntax of for loop with &mple exarnpe
Code Python.
&4 Com pare use of breok ond contimue soterment
Ss raw the flow chort of whe loop omd tor
lop eplig their Control flow.
(b) 2
(a) 2
for in (2,4) 3 4
pnnt (1) 4
(d No ne
Q7 What is the otpt (a) 2 (b) 2
for range (2,3):
Prnt (i) ( Nome
What Is -he output
for nge
ronge (1, 9, 3)
prmt (x)
(b) |, 2,3,4,S, G, 7,
(a) Enor
(d)
(c) 1, 4, 7, lo
WAP to fnd Sum numben
entered by Usor.
Pin on proram to checc etered
humber is palimdrome mot
Ql WAP to fmd entered mumber is pne