0 ratings0% found this document useful (0 votes) 87 views14 pagesPython File
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
Cove ©
|
woe co progeem to paint he\\o?
|
| paint CREM")
Ovtpes *
hello
yaite a pacgpam Jolpaint sum of uso Noviobkes ?
CoDe +
x5
ye lo
gatet Cisunt cry)
OurpeT =
Sem 2 15
atte 6 program to paint Sum by ware?
CODE +
ac = ent Crud CY Eaten sourmlber “y
ge tnt Cet Co Prien osnotner “nuanlbe?
pale Co gare 23983)
“y)
Ovr port .
Enter Number + V2
Eden emother countee te
Sum » 25
© scanned with OKEN Scannerspire 6 Pregpere Ato fpavint arco. of Amtomgte?
Cott?
ae ial Ciao C™ Enter aot sides “yy
p= fleok Cuatpod C*Rnten second tle”)
c = {ook Capo C’Gates: “nied gia tJ)
ge @t e406) / 2
een» (8"(-0)" (o-b)¥6-0))*" 0S
print C"Avea of) Aotamp\e + 6 0.20" ooarea )
Oorpor y
Entea Gost side S
Enter Scand Sida! 6
Enien Tied sida
Areo. of otomg\e y Wo
Jnite a Progpam jo paint squow 200% & o. number )
Code +
snuem > Sioa C* Enter 0 rusmbeo y)
snwm—sqe* = enurn #*O.S
paint Coe squnse 2008 of 0°34 * fore of Grom rum 5900)
Ovtput 3
Entes @ nusmbe? * g
The savor rrost of 8-900 + 2.398
© scanned with OKEN ScannerNette a Progeam +o Lind 40 4a}
ogg subjects? y evencgt amd percantogs
cote 2
az Sloat Cmbod (Enter english wastes") )
b= Moot Cipor C* Entes maith -maschs "> )
c= floot Cinpus (“Enters Gampotes marks »"D)
d= Soot Cinpot C’ Enters Prysies snooks 1”))
e> feat Gabor C Enter Chem'shayy seapk> .”))
Broil = arbec+d+e
Avg > (arvacedse)/S He Ayge oro S
Rr = CTbtal/Seo)* loo
patot Co \ Tedobrmaaks + 4.2.6 “sf Torah >
pains CS Rueroge emake 1 6-28 "A Aug )
petod ( “Peacentoge 7-24 “ef Pee>
Ovtbet +
Enters Eng\ish emoak= . 80
Rptea Math mo2Rs + AO
Enter Gompuie? anorR> | TB
Enea Oryaie me” St
Barter Chamistay cele BF
“ral mano + 424-00
Average senent> * Bu. BO
Reacesn tag 1 B4-Bo
© scanned with OKEN Scannersoit 0 pOBPEM * Beod even ar 088 rmumbex 7
Code *
spun = ot \e
if Comm sh 2° * ok:
point (ORs giver murnber 1S exemn")
else *
print (We ye enue %& 08d.")
nipod C"Ewtes a -nurnbes: "DS
Ovtper *
Enter ovmumber : 36
Tre ger number tS even.
Jette o Peogeomn +0 print lesest of +wW0 snusnbee )
Code +
eas int Ginpos C” Enter Gost -numibe> :”))
be yd Cenpor CS Eten second number :"))
if Carb) *
pater C" Greeodes’ ounces "a )
se os
pains (~ Gentes? unter ©)
Owtpor +
Emier Stes nusnbe? + 20
Enter second number * 10
Greatest wnmbe? 0,
© scanned with OKEN Scannerate @ progpen Ao Gind Ahat entered cs
Cont * eS gos 1S leap op ret)
yor? wot Girpod CO Enter yeas yy)
af Cyr F Woo 6) omd Cyena% too == 0)
prAC’ TA iS o led yea.” 5
ait Cyenn ==) mr (yoo 74 N00 \=0) =
paimy CRS is aleop yeoo.)
else *
prima CTS As woh o leo! yeov)
Ocdpos *
Enter Yeo? * 2000
Tris o leo yee? -
site © Reagpom to patnd Jorqutof Aneee snumbed ?
COE +
Br Gee Cece eX snusmnbed = ”Y)
2 and Capek Co Enter Amd smruma> >">)
ce int Cepek Co Extey Bad roumbes +”)
WB Woms OPO)
sean longest= 4
Aig (operand Gre)!
\oagest = ©
else ©
\aages* = ©
pein CP tages ts largest”)
Ovtpe* .
Enter \otnunnbea + V2
Bates Png number 2 (2
Eenten Bad nome? 214
\Y is leowgest 5
© scanned with OKEN ScannerP
ae Jo Frint losgest of 3 weing westea if)
4 CY Eater |e number = Ba)
a oe (oeeter 2rd rposmbea :"))
Phe Cenpot (“Enter Jag-number."))
G
wages =o
ige7b amd OC *
longest oe
it bro und b?C?
longest bh
Gera amd C7 b*
y=
Petar Cleages* 7 Yo ahe loxges 4")
Ovrpet?
Enter lek number. 6
Sater DAS wumnbes
Enter Bad vnumnbea *, &
Bis tho lenges +
© scanned with OKEN Scanneral pecgrame to shaw th working oh >amge
in vorge ©
ovteet *
1
2
3
4
5
-
ypaogeon? fo access tem Of alist using, {ee loop ?
ite ©
Code *
amy St = pave)
Qo i tn rage Cen Emy-Wist)) *
aemy wet
paint Cio)
Ovrper +
(tee Sa |
14M
23s
© scanned with OKEN Scannerre
ania 0 progam te Teaake Gow Tso to 37
CODE:
Gp i HH DAMYS Corays
proto GY
otpet >
oO
\
2
pie © pacgaam So pain ’y dig using faa loop ?
COvE
ae tnt Cinpet C° Ente & number: ~y)
while &*
paint Caf 10)
[| =\°
Corpor »
Enter a mumbea 2 2 |
\
2
© scanned with OKEN Scannerrie ® peegronn 40 display a stotement using a list)
Code *
= Lomeths . > “physic : “chemistay" “|
for i im Page Clem @y) +
paint (Tove, afi)
Ovt per =
I love math 5
T love Physics
I love Chemistay :
Weite a progeem Ato oshey stodant moxks Soom
records!
Code *
Gtudent_nenn e > » gples?
smarts = } Tames": 80, ‘Jules’: 60, ‘oath’ 455
fox student in wath *
if student == student neme |
paint Grmaa RS {student )
beealt
else:
patnt CoN entays Sound »
Oorpus :
60
© scanned with OKEN Scannerlist ond penfeorr Ahe following method 5
° » Remove » Aybend a) len 8) poh > dean
> 4
bo 4,5, 6,9, Cash ete!)
ait CO)
qeinse?t
pein co)
a. pemere (7)
pried la)
aa -obpend Cri”)
paint (a)
paint (lentad)
Pept)
paint Co)
a-deoa
bint Co)
Octbot +
(1,3,5,6,3, 134,93, “vette” |
Noe
1,3,9,20,6,9 T3,4,53, “vette” |
27175 my d
[),3,5,20,6 13,4153, “pero” |
bys, 2e, 6, 13,8,53, pene", “wi” |
(3,205
a
[1,2,5,20, 6f3,4,53 renio™ |
ty
© scanned with OKEN Scannersam to coeate a men wi :
preg sith Rlowing obtteng
aero C9
def rel Ce.*
eet ef
deS div Cah)?
servo lh :
pana CA. TS peafonrn odio”)
pent ("2. Te paaeet gubtaaction”™ ) ;
poles C3. To pea fon? emu liplication™)
faint CNT eater division ) -
che ent Gopoy CO Emre your choice + S
ebsel: :
i got Gabod Co Ente cnrnot2” >)
be
paint Codd G6) 5
aif cne=2 *
geod Co Ete panpber® i
c= ind Gobo aint Sy
and Genoa t CEM soumalee”))
d= tot Cinpot CEr
Pein CevbCe38>)
CWS yee ds
© scanned with OKEN Scannerwe ih YC piies snnanben’."))
oy (net y
4" _ wes (Che saan er ))
we
we cane GQ)
ye
epee) ee
bay Caen ret ee")
aye’ ‘
lew yours cyetea SY
lente? muimbea t 2,
fries nunn bem + z
\
vite 0 Yoogpertn te double o ayen rnusmbe> ond add
Huse ounmbes G8, \esembada C)?
Code '
dosble = lasnbda 2% 2“ x7
Vein} Céooble es )))
6446 = \aynbda Ayr Key
Va) Coda C5.M))
Oudwor +
\o
4
© scanned with OKEN Scannersoot = o pyro coda to twPlement obree-ma |
nm :
. (ode *
92S
b= 0
aio (o]>)
patos Cc bye")
Ovtpo* =
Zev division Exaca? division by 2220
Write o by Anon {peogpemm toges pyinor veasien )
Code *.
impoot sys
pains (° Syste veasion 3)
pains (sys. Neasion)
paint C Vasion inQerwation ws”)
pated Cays-veston—in)
Ove bor +
System ersten 1S &
3.88 Cacgs/V28- 2 O242BOS , Feb \9 202113114)
Nesston inQoomation +
info Cma}ee = 3, nino = B rmicao= 8, wlensdselfi
gys. version
, seta)
© scanned with OKEN Scannerie pyiter progzam to bait date , Kine, foo Aodoy
new?
cove *
impor’ datetime,
a= doletine- dotetime-odayC)
be daichime -doleliine new C)
point (@)
paint Ce)
OVTPLT =
Qo22-12-1)— VS 108223536532
2922-1271) 1S!082 23-SBESUO
© scanned with OKEN Scanner