0% found this document useful (0 votes)
4 views2 pages

Python Loop Control Statements Tutorial

The document outlines a tutorial for a B.Tech course in computer science, focusing on Python programming concepts. It includes discussions on various iteration statements, syntax for 'while' and 'for' loops, and comparisons of 'break' and 'continue' statements. Additionally, it contains exercises such as flowchart creation and coding tasks related to user input and number checks.

Uploaded by

tricksteryt41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Python Loop Control Statements Tutorial

The document outlines a tutorial for a B.Tech course in computer science, focusing on Python programming concepts. It includes discussions on various iteration statements, syntax for 'while' and 'for' loops, and comparisons of 'break' and 'continue' statements. Additionally, it contains exercises such as flowchart creation and coding tasks related to user input and number checks.

Uploaded by

tricksteryt41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like