0% found this document useful (0 votes)
56 views5 pages

Class XI Ip Python 4

This a notes of python programming in class 11

Uploaded by

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

Class XI Ip Python 4

This a notes of python programming in class 11

Uploaded by

bashar.6968
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
Download FREE Computer Science Notes at [Link] E 13 | anally pesto ieeronredt| erate Tl lt i | rlewhexsiip —opersless THAT Legical ePexatags www w P| Decision MAKING! | F Dec sion making M wth anticipolion of coadilions aecusing dass, te etecilion of a pasion and | Freed actions ~bken aceoaling ty the condikiona | www * Pythen pregracming loaguage- provides nthe. Foitowting | types of decision ~ making statewenly t | 4. iP Stadenend a. iP a else Statements 3. elif staterens if. iP Statement > “he. if Atatament Contasgs a legrcest expspnin | I using ahich the dsta 38 Compote and a ar yrion is vada. bagel on the wesuit of the Coupon Syntax tn ' | if expression # | Stotement(s) Owe VUE VHS HHHEHHHE HE HOH woe hs | Download FREE Computer Science Notes at [Link] Mlete > da Rythen, Atedements in a bloke axe: | umPoely indeated after “the Ayes « shitemenbs | | L oat I J Seapets a= mt Copa Cedex a value :")) bt tat Cinput C"entew b values") ifCa>b): Point O° Loxgeat elemed ig: ", a) Print C" Goad Bye. sa) oebpal Foley a velue : 5 | Eolex a Volue 1 5 Enkew An elge statement can be Combined with an if stotemant. An elge Altement containg & bleck of ede tat executes if the Conditienal expense? in the if Statement Se goes to ew a falge | Value. Syntax :- if expregpin | Sbotemeat (4) else: State meals) | Download FREE Computer Science Notes at [Link] gownioas FREE Computer Science Notes at [Link] | ¢ | ly Excanple : | a= int Cinput Coker a value :")) |b = int Cinput (“Enter b values") if Ca>b): Print C* Laxgest number 38 3 " a) elge! psiat C* Laxge,sh amber tat", b) patra: Enter a value 1 5 Entex b value + F Laxgest number ix fF a elf Sletecrent > te elf Statement alloy yee expressions fy TRvE aad execute a block of Cede oR foon Gf One of the conditrens evaluates te TRUE. Syntax }- te Cheek maitiple if expression! State meat(s? elif expressions State meal{s) elf exprepsions: Stebement{s) ae! ee Statement(A) DARHRARAAAAHDADAHHHHOHRHHHRAHHHOHHRHHA Download FREE Computer Science Notes at [Link] Download FREE Computer Science Notes at TutorialsDuniya.c Fan ple 7 heusg = int Gaput C” Entes tyme 17 heugs : * if Chavss >26 and heugs =16 and house <1)! pont O° oop Evena") elge ; print C° Goan Neat’) Out put : Enter time in hougs s 9 Goon Mornila SWWGLE STATEMENT suites # ff nthe pute of an P chyse — copsials only of a Ainge hae, ik mag ge on Be sane le hea dew Arotement : = Download FREE Computer Science Notes at [Link]

You might also like