0% found this document useful (0 votes)
5 views

Python Assignment 01

Python assignment
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)
5 views

Python Assignment 01

Python assignment
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
You are on page 1/ 5

PYTHO

ASSN_MENT

y Exptain Coopiug stacfe neeve in tytton tortta Brokot,


Puthon oopt m cfatenekES e used to erut

Te fhr oop ierates over a eguence(like


a dit,
ede b(ack e, eacle Hene m lee se2uence.
Txanplii
fox i in sange (5)

Tu olle tooo ereccfes tlue cocte block

Co tent 0
olile ont <5
pitt(cotnt)

Q1 Diseus Operator and conk a Rsograh to pseit


checle
balindrono or not 2
Opeyatos ython
Opexatos ave synnbols
hat pex{oxm
pevfoxm operaticns en one oY
Spedific bperations
Specific 09e olossiti nto
severeO fypes - Camlin
fithntetic OpesatoxS - + - * /
Caddihon, Subkachion, muttiplicaticn, division, tnodulus,
floo dìvision)

eaeal fo, not egtal to, grectes tlian, ler tthan, grecler
Han te or egual to, lesr than or egtal 6)

Logical Opesators - and, ar not


iegical AD, toglcao OR, leglcal AO)
Bitose oR, biteoise xoR bitose

assiqameut, addi hon asçtqnnme nt ,ub kaction


assign ncnt , Aultipli ta tion assi9nmevet divsion esignn
ld entlty Opexatoxi
cbjeot )
Manbetaleip Opeaacoy i- in, not în

Comlin
Palindxo MLL Cheok

ef i-palindronte Cnun)
Convert te nu mber fo a StiM9
nuntt = str (num)

ReeYse

#Check ff te ongnaQ sting is egtual to teu

nun> înt (input " ntey a bonben t "))

# oleck te

þint
3 Dictus abaut fouo chaxt
too claaxt aud decisionTree.
Floto hot
Stepscegentaton
aape anconnecting a Camln
4 helps to wisualize te ste ps inustved in a

Contntondlaper sed in floo ckant ?nalude'

Reckangle
" De c'sion i eold

npt/outpucti Paellelegzatu
Deesion Tree
A DecCiOn tree a hree- (ike
Moclel tIed e naking
hoda ad hsan cheg outt fnto
decsion nocles and lea nodds, ochdeciio
fest 9estion and eoch
fea t epeSets fest estion @nd
leuf nofe eps(egeut a dethon or
Ctuttoue Detclon ees ane a ten lsed in
Aaclun feaning for cla ssi 42 cation and
Tegyesslon teuks
-la ke5su bject naks
and

Geetnaks or svhjectg.
(npet,"Lnput nlarks ouy tcd n)
OxKS JaAfloat Mostes fox Soject2;
niaxkS. 2a foat (inplt "énter
(inpt /" Cnter DMo es fer Sih ect 3, 1
maves 3 ocet naxksfor Sibject G:11
LMOYKS 4:Aoat (input "Enter
lalcilatr fetal Mats

4 (alceulate Pexcettage
bexcentge (tetal-hasku /5n ) / o

pnnt"pescentage percemfage)
to pent you nan pto /oThugs

Camlin

You might also like