0% found this document useful (0 votes)
10 views82 pages

Yapay Zeka Icin Python Programlama Python Notes

The document provides instructions on accessing Anaconda Assistant in Jupyter Notebooks and JupyterLab, along with various programming concepts in Python. It covers topics such as data structures, functions, and object-oriented programming, including examples and explanations. The content appears to be a mix of code snippets and educational material aimed at teaching Python programming.

Uploaded by

zeyneb.okumus
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)
10 views82 pages

Yapay Zeka Icin Python Programlama Python Notes

The document provides instructions on accessing Anaconda Assistant in Jupyter Notebooks and JupyterLab, along with various programming concepts in Python. It covers topics such as data structures, functions, and object-oriented programming, including examples and explanations. The content appears to be a mix of code snippets and educational material aimed at teaching Python programming.

Uploaded by

zeyneb.okumus
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
—* Access Anaconda Assistant in Jupyter Notebooks and JupyterLab = Sayeed sacs) kaesemize serge pyshen cme ay Prec it Se > apie eure laws > ere conde bury lor 7 Coleks gyths ksd ler ine orn bil cag > = Gagle FQ renee lie cavicox ent \aer bt bullonmwe - gogple cotel ” sone r Saeelypre sr pours (yy ee Done Fo eet coepcnen* vos var Dale te gone ebgee ms ver be wor LU bye et Sslen pmok = even. kelinw olsvot close rest Vi stig S vovlte ge Se flwet per. Gin bel srpenise crete elie li dagen le ger \orenr. eronee Kip olvetery em aad cle secthen ol sst orwey fern _ 4 tyye bie farctton Ou ge method. Ipythen console ‘doy'd Dida bogllys Index! love ge de pe hoot lars Soytharin biy © bistlest — 2 rythe pease a dalle ve fleet in der ky ag fleet ba pgtverde br lear silt ver 4 fhsot49) 7 lataper Vo fleatla sevirdd gloat 7 baw pethedur [jmp uerebte olorek teraleamgo a yortabte adni donmlov ben Loslut ko yong A ferdionlo py ther "Qok en revel vegierea bide. forks) yoouvun sR modi. Console ‘da SHIT4 + Eater Ne ren edigors. > frciton porawete — oloret tine bi seq nok mar ole, abog it we aveds. Pracrerty erm wy hebory) Liv sege perorn etme’ a en saplarn. seminim bY burston form 50k got seyler goprcole sinh Insor_ lor ca gsrenekle» seovly . defe.t* once: SGoord— gree ste SS ger se MP se aefowt4 we Phew ele Pyvctten We Seow eotetie- = pycacm ‘da Fries Dagie ee = hepsin’ comment le Ctr & af tle gyre “> = —t > kilo, *args) REDO lund Si fovines Indes Wi dtge yoretion 135 or kadaslon wargs fea coer bt rene ftexitte porate 2 As copy rose \oe Beeren® ee aalt poreret ete clehe sock de acl aldo gu Ten sma goo Poaye gerne we ke rdinte? She oe gedit We Ng cmc tyhy Hewson a tuete > condi tewl; feo tes glk apellivlerme Bese eV e— Beste dye ey dere tyre time Fache cx elute poyle ¥ aoetrsd Yortgpr 3? ee (Ege) even EER NS Nain Agee oS loons Eibep sy. ve Este Sle bu Nore LV cca ia nertVedtors Live geval - ripe cot Pare erent opjcet + xh] orc | Eros CLae Le seboltle diere-ory kege no biliiz,. Boge fap” Your selected answer "(1,2)" is correct because it accurately represents a tuple in Python, which is defined by parentheses. This choice aligns with the learning objective of identifying different data structures in programming. Great job on understanding this concept! olorak ty methnedlerch ceter olyer or csctas hor low. Your answer "False" is correct because the dictionaries d1 and d2 have the same key "team" but different values for "datai" (40 vs. 55), making them unequal. Thus, evaluating d1 == d2 returns False, representing a key concept in understanding dictionary comparison in Python. 04 Vole gesne pe dgir dg £7 peciee gettue bev do Di gerek Ss be drteey wn velue orm wp me. PmCr ister) eure an Brace beri) Nee eau Gr year_str = str(year) Pea COT Ces) eee aEaE TSG DU a eae: print( if len(year_str) Ce aCc UTD) Paar Beir as : CT cael a eee Beapece DEL Tt CLLR TTaz EOD) -format (year, yuzyil)) yuzyil = int(year_str[9])+1 print("{} y LT LOr LNT Taree) ceyrar (ter -1-D Ove 2 ined index eros Sp > ecs - Cc 3 1» sacle excl te ay sent sete «Fe chery chge. - 1$a6S “I> Senjwr Z- ae “9 bes lo Zone gre sope defo ee ets Tes conl-nek igh elinrtgd enmq 50 tebe? Bree Bier G9se™ Segre Regsin goad . aa Cx excl ohasgu Tarn ONE 4 mel lndexler eros ales wm Buzala Gora > if len(year_str) == cea ee ST eee ete! ( format (year, yuzyil)) ron Sirae SMa UO aCe ee tsOre Lest T SES) SEae CUCL Ua) ios ne MECC aera ce Sees eee ero) PCC ae Fn er ese Sree raat ( -format (year, yuzyil)) Sra tMPaECL OTT een CEES p= ( -format(year, yuzyil)) cEapeCrt ae es Prrsst Meet Ort Datos Cras S| Serb skor tobene Evudes tpler le nwetacele oY. ~~ Peele seyig srriny ’e coulis! Ipvem ewrok Vera! feem. Yityi Mer) belirleare qe le ete a \E as tetementin sons beyret sre (1) ier nokta Ost Cbd boas enwinwe. gtkorinde Bln dpun gh! re tel 85 ferkls aero sen vada cone Yen: ee Ke conetpon’ lenin check edilmest Snell. we if else Sent te. senpe 2 tenet !aep vor fer ana while lowe. exehsive— indusive leosiieier aeht pret ctawewe 1it() Necliwelori lens Iskler me gsr] ear, ered £ 3 pens ag se fore org DQ YO bureonrcsen sorsg Foret: eg Meyers sewers doe emig ote sge SivES - ate 2 for Sore Wee S) burech LY tele ver yir= 9 \istenin {ela ak? clenrentor: —ploais alduk ov kocop br, Chile lomp) 4 PGAh Bese LO Phen. ockgect Orie; ted Mismiene gos dyer? > cet while <7: print(c) ife==4: break breok eet uwhile Brg asrelen et=1 eke mee moder lee > _listi= ['milk"Torange’, fish’, "water"] for iin list: for Fin IS printti) Print fonksiyonunun sonucu nedir? de dizirde orbs Eonts’ erage counts ay ples eureder al dugu ger > + s+ 4urok efosinsb kolo n her eve kerotier es stitg ~ es breade Sse Syolt Wetec split()| pee du ol Raddy onmla eorgrds. nuc=hesapla( Fo eeC eS print (sonuc2(3)) er eed Choa E Orc smc print( eS OC Peas) eae) ErruesC(r OD) ere eee CO ieee Td Pee Taste OCU ats) Peter? »sonuc) Pi vilete furertar Serene SIG concere nate lesyle vay min ist), meted bens ger coon dedyioade; far long ‘on Iserdnde_- \ighe "ek! her bh abifers! otyps beois! agle sogme bo ey. wit, condition statement ip staterertin last sekanesice Yori POKEr- eg Voor tyizthe . aes See a ¢5 Siete) Be nT te se aE) STUNG UMC SEED i se PURE CER Tete PER ESAL Za] Cee print (mini) ate ‘ de N fy Bosics derstmia} bitwalky Elma Object oslnted dessin’. 1s we be sloyocapia. a Choss Constructor Obygect class ism! bos harp! boys goathr, 5 . bu bithm constvucter Meteadumy) 4 Calison clas undo ; bir object yorotygynia qalon — rain modle [Sake Callsan cless ‘indo be object yore ee- > isch 2, Colson class tian bin object Berek ¢ dare tie, a genel bY yor lusts OST > Clos) debe corre bev pew geride7 object ‘ler olugtyrsygoa, oC prooopy seth oo" Lin ered pil) se be Drenden orca lod aime netted Calisan — closs 109 2 jore wetad¥ vor. Det ithe you" canst sore gs) greene Soreove meTdvy agers tm, oyTblin, eos Ny Di> C oyeih oboe Gain saqligona) return [Link] Fc t meme Seer are print ([Link]()) Prenraes EStrdeecst ets) rc Gren ced oy corse tre rrr ra (self) Sect erb ees Leg Cote eeereeeG self - Coloen closs lindas dehire eddles vortoble’ lore 4a 2 ecigwrenit{ sag legode clown fin Ver Poble levine es lp rend Sap logos setg (I Jonin lade fina Clesy cmnstent Cone _ da geen? poe yee 5 bi vers goon cy ee gerne MN eA puter: wok ges be erjpert torn todin, yon Conus seg Pe ee rest em eodinds & Woefians preredy COPING a9 einbt object Daerden gs la gewh gon rashes be onper gsimeyre geek yok) self 2 ste cleoss’s femstlh estager yewk Inly prehody tle cof pe pees a a! Nyaa get ble jalk wet av oye! yearn tpi Aaa counher Geetne’ Dedugha A Joka Vy Wer bie obgect fein agi s he be a ob Corker or pero aleek yorelaremin L4Pe Miya clogs fei7 4 cebf chogss; av adige ene he Ld obie fe% obje ain self "y, yee tin sera 47) ortek self’) dg. wen berlin her bY moa ebjcleria ne prrger se Coliwr chew Ae nee ay 79 > . class calisant ree Pee re ears) erenrcn eeserene eoreerreron meet eran) Poteet are ect) ( este ert) ote nero) Aare re) Petre coe - isim, soyisim,maas) soyisim = soyisin erences Ore eee cca Ceara etea) return [Link] + "" + [Link] oem ober eee vee Gea eC) ( ", [Link]) Coteeeert ar) ee) Ju ran ete Calgon. counter = 4 class Calisan! rence cr UOTE, soyisin = soyisim oruerertrent tres Poteet Tees teria es eet eae Pav ete trl is apes Comms Ore mest a raat) ( ", [Link]) calisani.zam_yap() Paestertty) Corea eae class Calisan: etna def _ainit_(self,isim, soyisin,maas) eee eeroret) ote trortc [Link] = [Link] + Peart eres) Peer ate es seneest) def zam_yap( self) or eee erie Rot Corer eevee a canna ( Ate Leoro) calisant.zam_yap() ( ', [Link]) » Cyrene eer Gea i Li done che colfer2 olggect Colyor, aunter sD gorebnce,

You might also like