Python Practical File
Python Practical File
Cuthu
numbth 20
Entih Selany
Quthus:
huse entet Value fos P;13
l e a ente value fot G 43
Th Na af P aftt Auuupuny : 43
The value at g
aJtr Suapfiny 13
h o n hragkam to Canveki clehku Fantinis
o li4ttt teltivs
CsLus-I, Eakunhil-1))
is-2 plawlinps ("Tnhratuhe valur n
degk
Csius,"'))
Erunhi-2 - ( a s s - *g/5)+32
C , Fuhukis-r))
Cstus
C-atb
Bint (" The Aum caf a and b is', C)
hain (ayb)
RAin a b)
>b)
Aun (c
Quthus
Thsum of a n d bis 3
Thue
False
Fuye
TOUE
unnilAnd
thi hARny aL
7n fhayAum to
hiunse n i l lauul ahettaks'
alo
b- 4
bAinn ( a ^ b : " , a n b )
aulhut
Ib:l4
a b - 14
ythun fhayrtm to unilutAknd the 4RLny af
b 4
Pain ("a Y b:", a yb)
e i n ( ' a lb-"', alb
bhin (''na-"', a )
alhud
a
aIb:/14
a b 14
P
e9usion
LhoAs tmash
aI
b
Quthut
Enhe aT
ntel b5
Entes c 6
+0J)and(-2 t)
The uutions cu(-3
t h n tauytum to hint ba1en uIng he47e
JeaL = 6
cA i n Ainge (i)'
i n i , end=' ')
hrin ' ')
33 3
555 55
tha hhasrun t0 HlSAay the multihulwion
hAintnm,'y',i, '',nun¥ )
Quttut
122 24
3 3 36
124 48
1 R Y5 60
1 2 Y6 72
27 84
2 96
12 Yy 108
I2klo = Ro
hythan hhaykum to i n t the isahull se9vente
h ms=iw (ins(" Hou meny tekms? "))
h,n2 0,
Court 0
nIn2
n2nth
othis
Ho M r y tems ? 7
dAtaykam to cheuk ALmslkang Numbei
NUmigkv indlinh " Enteh Ca numbek "))
Sum-0
tmh nm
uhLuterh>0'
duyit-temh lo
Stu cligit **3
temh/-10
num- Sum
Qulhut
EnleA a nwnbe 60.J
669 natn AAtlry numbeh
o hoyham to Eind Akmtlang Numss ii an
LnteAu
Loadar loo
tun-num
i e temh o
cligit tenh . to
Smt u g i t * * aliluA
temh l/= lo
num = = Swm:
hAin lnun)
Qthut
53
310
16 34
IN
han hha4tm to mant uinhi CuuultJof
det all( a,Y)
Jutukn Y+Y
daf suhkAa (X, Y)
uwtn X-Y
ukn x/y
o n llldisi on 7 ( Yes/no) ; no
A0A na
CLye
tiv ("Sc} 1ina a
datf yeas" feAnslyead))
aLuthu
SmullsB- 0
4albcunl ak
b a aun bé
Snillst -b
a wd tbi
millst- l
t i v l Smius+"}
S th Jmiluj O thAu
mbeAs. ")
audbut
b a and b
Smallst - b
nwmbers")
t t A eiond unbeA:?1
7
Ente thisd Numbes :
thAu u n b e s
41 the muluyt of
2/3*
eythan Pho 7n4
t o h A i Sum o Jekiey -1/2t
e hrindbhi'ethum (N)
SLm 0
A i in Ainyl l, N+I)
it)
Sun + i / li+)
else
Sm / (i+1),
i n (Jum)
1
N 10
i n s Aiuim(N)
0 2634 56
the dum 'T
gAahtoYiim to ind o/
Ntutul Numhtts
num-16
num <o .
hrint ('" tnter a hositive numbes ")
Suum 0
u l e ( nuum >o)
Sum + num
authus
Th Sum is 136