Ejercicios Propuestos Listas y Diccionarios (Parcial)
July 22, 2022 | Author: Anonymous | Category: N/A
Short Description
Download Ejercicios Propuestos Listas y Diccionarios (Parcial)...
Description
F@F[IAIAOY Z[OZVFY\OY Eastds y Laiiaondraos
F`friaiaos lf Eastds F`friaiao 4 La Lasf sfôf ôf un degor degorat atco co qu quff efd efd po porr tfied tfiedlo lo eds 6 no notd tdss ok oktf tfna nald ldss po porr un deucn deucno o (iocprfnlalds fntrf : y 4:). D iontanudiaùn, lfkf costrdr tolds eds notds, ed notd cflad, ed notd cäs detd quf md sdidlo y ed cfnor. acport acport cdtm notds3 notds 3RS hor anlaif an hor an rdngf rdngf( (4,8)0 wmaef wmaef \ruf \ruf0 0 notd3ant(anput anput( ( h 'Lagatf 'Lagatf ed notd {anlaif anlaif} }0' 0')) )) ah ah notd>3 >3: : dnl dnl notd53 534: 4:0 0 krfdb notds.dppfnl dppfnl(notd) (notd) prant( prant ('Notds0' 'Notds0') ) hor hor notd an an notds0 prant(notd) prant (notd) prant('Notd Cflad0' prant( Cflad0', ,suc suc(notds) (notds)/ /efn efn(notds)) (notds)) prant( prant ('Notd cäxacd0', cäxacd0',cdx(notds)) cdx(notds)) prant( prant ('Notd canacd0', canacd0',can can(notds)) (notds))
F`friaiao ; Lasfôf un degoratco quf pald un nðcfro de usudrao un nðcfro lf cfs (por f`fcpeo, fe 6) y lagd iuäntos lãds tafnf (por f`fcpeo, 94) y fe nockrf lfe cfs. Lfkfs usdr eastds. Zdrd sacpeahaidreo vdcos d suponfr quf hfkrfro tafnf ;= lãds. lads3 3R94 94, ,;= ;=, ,94 94, ,9: 9:, ,94 94, ,9: 9:, ,94 94, ,94 94, ,9: 9:, ,94 94, ,9: 9:, ,94 94S S lads nockrfCfs3 nockrfCfs 3R'Fnfro' 'Fnfro', ,'Hfkrfro' 'Hfkrfro', ,'Cdrzo' 'Cdrzo', ,'Dkrae' 'Dkrae', ,'Cdyo' 'Cdyo', ,'@unao' '@unao', ,'@ueao' '@ueao', ,'Dgosto' 'Dgosto', ,'Yfptafckrf' 'Yfptafckrf', ,' Oitukrf', Oitukrf' ,'Novafckrf' 'Novafckrf', ,'Laiafckrf' 'Laiafckrf'S S cfs3 cfs 3ant(anput anput( ('Lagatf cfs fntrf (4-4;)0')) (4-4;)0')) ah ah cfs>3 >34 4 dnl dnl cfs53 534; 4;0 0 prant( prant ('Fe cfs lf',nockrfCfsRcfs lf',nockrfCfsRcfs-4S, S,'tafnf' 'tafnf',ladsRcfs ,ladsRcfs-4S, S,'lads' 'lads') ) fesf0 fesf 0
prant( prant ('Cfs hufrd lfe rdngo') rdngo')
F`friaiao 9 Lasfôdr un progrdcd quf tfngd eos saguafntfs rfqufracafntos0 Irfd und tdked (eastd ion los lacfnsaonfs) lf 6x6 fntfros. Idrgd ed tdked ion vdeorfs nucáraios fntfros. Yucd tolos eos fefcfntos lf idld haed y tolos eos fefcfntos lf idld ioeucnd vasudeazdnlo eos rfsuetdlos fn pdntdeed.
F`friaiao < Fsirakd un degoratco quf pfrcatd irfdr und eastd lf pdedkrds y quf, d iontanudiaùn lf trfs opiaonfs0
Iontdr0 Cf palf und idlfnd, y cf laif iudntds vfifs dpdrfif fn ed eastd
Colahaidr0 Cf palf palf und und id idlf lfnd nd,, y otrd otrd idlf idlfnd nd d cola colaha haid idr, r, y cola colaha haid id to told ldss de deds ds dpdraiaonfs lf ed pracfrd por ed sfgunld fn ed eastd. Feacandr0 Cf palf und idlfnd, y ed
feacand lf ed eastd.
Costrdr0 Cufstrd ed eastd lf idlfnds
\frcandr
F`friaiaos lf Laiiaondraos F`friaiao 4 Fsir Fsirak akff un pr prog ogrd rdcd cd py pytm tmon on qu quff pald pald un nð nðcf cfro ro po porr tf tfie iedl dlo o y qu quff ir irff ff un laiiaondrao iuyds iedvfs sfdn lfslf fe nðcfro 4 mdstd fe nðcfro anlaidlo, y eos vdeorfs sfdn eos iudlrdlos lf eds iedvfs.
F`friaiao ; Xdcos d irfdr un progrdcd fn pytmon lonlf vdcos d lfiedrdr un laiiaondrao pdrd gudrldr eos prfiaos lf eds lastantds hrutds. Fe progrdcd pflarä fe nockrf lf ed hrutd y ed idntaldl quf sf md vfnlalo y nos costrdrä fe prfiao hande lf ed hrutd d pdrtar lf eos ldtos gudrldlos fn fe laiiaondrao. Ya ed hrutd no fxastf nos ldrä un frror. \rds idld ionsuetd fe progrdcd nos prfguntdrä sa qufrfcos mdifr otrd ionsuetd. prfiao3 prfiao3{ 'cdnzdnd'0 'cdnzdnd' 04=:: 4=::, , 'pfrd'0 'pfrd' 0=:: =::, , 'dekdraioquf'0 'dekdraioquf' 0;6:: ;6::, , 'paôd'0 'paôd' 04;:: 4;::, , 'iorozo'0 'iorozo' 04::: } hrutd3 hrutd 3anput anput( ('Fsirakd hrutd vfnlald0 '). ').eowfr eowfr() () ah ah hrutd not not an an prfiao0 prant( prant ('Hufrd lf rdngo') rdngo') fesf0 fesf 0 idntaldl3ant(anput anput( ('Lagatf idntaldl0')) idntaldl0')) prant( prant ('Fe prfiao fs lf0',idntaldl lf0',idntaldl* *prfiaoRhrutdS)
F`friaiao 9 Iolahaid Iolaha id un progrd progrdcd cd fn pytmon pytmon quf no noss pfrcat pfrcatdd gudrld gudrldrr eos nockrfs nockrfs lf eos deucnos lf und iedsf y eds notds quf mdn oktfnalo. Idld deucno puflf tfnfr lastantd idntaldl lf notds. Gudrld ed anhorcdiaùn fn un laiiaondrao iuyd iedvfs sfrän eos nockrfs lf eos deucnos y eos vdeorfs sfrän eastds ion eds notds lf idld deucno. Fe progrdcd pflarä fe nðcfro lf deucnos quf vdcos d antroluiar, pflarä su nockrf f arä palafnlo sus notds mdstd quf antroluzidcos un nðcfro nfgdtavo. De hande fe progrdcd nos costrdrä ed eastd lf deucnos y ed notd cflad oktfnald por idld uno lf feeos. Notd0 sa sf antroluif antroluif fe nockrf nockrf lf un deucno quf yd fxastf fe progrdcd nos ldrä un frror.
F`friaiao < Fsirakar un progrdcd quf acpefcfntf und dgfnld. Fn ed dgfnld sf polrän gudrldr nockrfs y nðcfros lf tfeáhono. Fe progrdcd nos ldrä fe saguafntf cfnð0 Dôdlar/colahaidr0 Nos palf un nockrf. Ya fe nockrf sf fniufntrd fn ed dgfnld,
lfkf costrdr fe tfeáhono y, opiaondecfntf, pfrcatar colahaidreo sa no fs iorrfito. Ya fe nockrf no sf fniufntrd, lfkf pfrcatar angrfsdr fe tfeáhono iorrfsponlafntf. Kusidr0 Nos palf und idlfnd lf idrditfrfs, y nos cufstrds tolos eos iontditos iuyos nockrfs iocafnifn por laimd idlfnd. Korrdr0 Nos palf un nockrf y sa fxastf nos prfguntdrä sa qufrfcos korrdreo lf ed
dgfnld. Eastdr0 Nos cufstrd tolos eos iontditos lf ed dgfnld.
View more...
Comments