You are on page 1of 25
* Python org — denntena & Intell * dycharm editor dewnlral and intel + Spider, Eclepse Pyrev, Tupyter, Atom, IDE, + pybsen file name anct exlinsion: Paes "D — eR paink(' *) a The Ptint Ateliment cm pylen. —* a varabe? contesnar | oF + Variables: Tn ae e ae Boge wk hz[e-z| aneer area ‘t wne putin Perms to oe faa) wren, ae omg Pein print Fie tabeted Pee a ) int Gaps ) A, pest! bree Print( pace) ofe: a Bh prot (pre) Prieto ‘ a. pace =20 A . Aw) olp. 20 a ae ; ST = pylhen 8 tire by executor | NER prie=10 ; rates M7 name =» Aye" racy dead ta public = False |[dawer cape 7 print pre) srsmncos aa BR Tohn slashes" Coie name = inpar(! Ener germ neme') rage PPE hab oh Your feveria- ate Crime + "like color) Pytror Built-in Datatypes: oe # Variabe pte data of diferent tyfer, and they have aanbriclen on 1h operation, a Text type > Str i Nomeric: int, float, Complex Geqpence : (vst, tuple, range mapping : 202 - byear aan ey as) may rit Ervrvr comer. Aime, line 22 et J pecawe “f — 2029 -byanr. undupted gebrren 7 int, Afr eperntron 5 ole: Tert-fere F a &: Tyte Conuertion Furs ws byear = input! Enley birth year!) ie age= 2023 - é Int) bye” t fleat() ee os bet) prink( type ( byea)) rnc a pei tyre Cage) ee | Yaa a < & | Weight = nput(MWegee bss") String methods . Courses “python Ter Begenner4 print C en Cemere)) Care, upper C) e weyica EE lew 0 farchm + capitalize ( ee elle + (aver ( - @refola( + Conder ( . Casal 6 eae + Hee, a e po net charge | mete We ores premrC Conme: find C'p ») ofp: @ 422 index of P = hy pacnr(casve. findC'0')) ol? - Fixe occurence of O dex >4- in Come 4 tt ~ Tf evry, mew % O founds 1 pect ( Coerve find (' fer’) ole 1 pomee “foe begen a index 7. [ke inder= O bk G1). print Comned. replace C'Begemers'; “Weanners DD olp: python fies Learners. pocntC pythen’ cn Courae) At Brotenn alae = Te she hh ofemla profes broken vetee Aritonate_opembints pacnt( 1044) ar. % putePCio 4 4) bo sealbipeat ne purt(io- &) 6 pect 10/%) ay ae pucnt © aw Round off ming. Of tvcanehls (hore) port('o %3 ' poor (ro #4) pteceno expretinhe a=,” ye ashe ac ath ports) oe mo x+y xe Gor yer—h pcre Ca) lp: 22 math functions as 24 rornk(x) ofp: 3. “the round pustt —in Plnctien KRe2-9h per Cabo(ay) lr 2-7 e , D t pr is Need 15 import mall a mathe aces (x, . va cesh() handle Complore malkemab tal compubai- + aSin(a) cet) P punt C malk cexl(2+4)) ole: 3 paar Comal flor (2:4) op: 2. lott oe mallr module Can - ox plore from documetetion er pale Workles <>. aye Dtelement * ~ wits / Aa (S-het = Tate She0 % e—-hets oF punts fe 4 a het dey"), 2 7 prinr(® Evjay yor 403") 9 { ¥, ee eed < <2 : 2 a {nese 4) cag = Te het = Te A Tf het: purr’ Te a a het day") ‘ } pri" Drink pleaty oF taler”)s pre c'enpg IME day") &¢ a Fig : < ts | Print C £ Downpayment $f denon -prynert Price = 7000000 has-qaok-erediit = True ka ue has-gqrok- Credit ¢ own. payment = Or! # faite A else + iG ; ; : loon — payment = OD pada Ans point Down payment! + down-payment) “ / pre Gees ae oe y at Oe NeeE NS (Bade 9 ac} Qees sat pap: a(t eins Logical eperrtons: TR high a0 ¢ pointe tse a het doy? alee ie Cikenp 4008 printer a cov any) Hint” Ejay Whe dy") a else hoeeq tr TMonput C' 19. Es), ne a kor tgs TE unite upper () == "L" Comvertiy = Neigh kO-45 ’ PREC §" you ave Leona kilos’) ire wot upperO =2°K"t Conenes — weeght| ous Prin(4 "yar ave { convenes pee") ele» i pink Trvsek ureter’) hile Lov ; tohilé Condition ; do. Atalé mens. cel cohite (e=5t pore) C= C+ print” Done") as ’ inp: ee phehD tect: CAF on CO ‘7 peaply em command = te fohcte commands Laver) \= ye * Cone ah inpubC > y Th tormend. Sonex) = = _ print (! Car BEA y ; 8 & Be command lever 0 ==" HEP | i pointC Car pteptes") ike Foe te eee ae "ater"; i : prin ae ‘ Bs: ue ee oe z Skop - to Atop | wy )) Quack j word leer) == UX ‘ em! : v4 F a a fer lewp fer sem on ‘pylon’ : ot Print (item) f 3 € s @ Ld tog item in TL) Meth’, “jobs sae): e brit (item) A i f | ; o| Monk r john ” We : thou 12,8, an 6° | + @ Cue, e Xs ? Ye. Shoat HF str item in range igs mA wit ( (ten) x D8ang f yi far item i range(5; 10,2) print item) Neves Lorpt Need gemerwte. C49) = § Co,0), Oy (rad aria} fer x in onage C4)! For yin omega a) + pret (ger fy) ) ; fe,1,2,934 $0,123 f 409,024 He, Lets Tine Lirmeroion ak _bent| makriogs: ees Pe 3 Gse 1#4 a matrr= [ wea, T4,5, 6), t7,4/4 en brink (mee RDI) ah put ( matuxtd) 9 77 Wrcler acy la fence eae, teats Largo number 1 & nurs = 1,34, £55 0D max = Molo) fox (tem in nurs ¢ f them max + max = ten Lin of. names] Cee” sate comma in TI ‘Maoy'J | vee? =[Jobn’, ‘bab, ‘Hosh’, Mee, prist(names) [oa Ci sotn!, ‘bm, | Alea, ‘way J Mesh, etre oO 1 = ine priarCransseD) out pale ci ge os a a a John prinr(nameC-) ure ee pore (ramesCa: J) fp ist, We) neo] GAS sar Merci Woe? ;" gnats") ae fer am in mab: efor (tem in 7 print ( matore print( name (2: o)) perte namer(2J, nar(. 3) txcluting 4. leat yamerCod = “Tehy’ Lok methee nunbero = Ls,1,a,4, 6 1] Murrberes aptend( clear Cony Count 4 enlind index ; insert C ( perc Temoe ( vevere( 8 ie ofp: G 124, 4,0) 20] ae , Frere element mumberp nlertCO , a peentC number) " ail on 4 4 Remove Auplizmte hacer i ae i fe gee! numbey = [2,2,4 63,4619 Me }is We i uncyuer = CF ’ D bigs, eee ’ a Teper. f Aubjecks= C'physics’, ‘chemisoy, mals. » Define a sitkin CD Parantter | aaa) © Tmutsble - eit gs ie ‘maths! numberd = Ci,2,3) fa tuples Avhjeeb (le: 3) numbers = [1,23] & a list, pacntgwaley 1a) (Chemisty, malts’) methe@s : 5, erclideng 3 tnbore. Count) index) tus rrethed , We amr change (Lo alec Tuple 4. Tmmuksble , Once Beebo neembers = (1,2/3) Prt ( number) (| Aubjeata ag! Seesatong! ole: a gin, rer eae number 09 = 5 eo a ee b yw as print Gumdex to) be in. ely Sa Se eis ia! 3 | on Dictionaries {eh ee A dickionary aterer Key Value pais, Declare it i; rs 1 oly braces cote ag i! commage Genet Be mage Key And Rise Deparalé by » Ths i, tle Srp {keys valee,--- % Emplayee = firiats 1, 'salooy 11000 $ eee Dekpuk, + pacar Enpleype C'Satog'}) { : 2 Bente — ontpat’. ood Re Cay mock dictionany URicer. as Employee 'Salary'J= 1500 VF ai ~The keys) Heke, wefal ' get lear of keys Ihe dectonoy ard wderg Crenpsucla tion , Dats Matric hon rhea mamber Funckrna in ond loc Uren teerina lt Enca pata tren mens preing| tong “dats, yreedumt Telhets frm accemeng & “Pp can be abroentet and can be pradure Called proceduml Abstr chron. abotatien mechanvom- The d-\ cham achceted from be Conapt tabu enc poulaben. + Clas person; deg kta Cota Self. name >" John” i “tT 4a, fades 4 a gierieb a ” fe ead" Hy” gs. 4 oa taxing >" P8cDEqK’ Contech =" 94535: ange ar, The pythen Fonctyin im. geneiml 2) def fun-nameC paramelis) * python -stelamens nary » def myfunCa) prink( Parameter Valiee:! a) myfun ( 65) my fun Celise)? he.) "LiseL: ub pring (* Value ak index I he re rint( At index © of viseley) Parameter Unie > 65 J my fan (" * Banalou" “Delle”, *chemae 2) def myfun (.4,b): J Hil, PATE» d ) Print Cab) v2 ey ia Wt, Mail cath mugfun( 100, 20°) At infee 0: Hye usp: Boo 100 +200 © along Wik (kz Namen 4 gure Kegrrorl Goguments « We can pass paramebs value dep myfan Ca, b, €): ( Print ("pales eai',a prot C bre abt mupfan( 100, 300, 200) (oa icy. 4 % my fun (b =300, 4 = (00, o= 2007 cies i utp Ag 1 outp: pa) i Value A a 1100 b+e = 500 Default Parameters : pefauts Parameters) python alin allard defeutt pammeter parsing mechan 277 , deé myfien ( city=" Hypterabad ) POLO 'T am atudying 191! 205) al myfan O my (urC Banglore’) Mr ot 2 mnyfeon (* Choma") mM ee ae T am studying 1»? Hyfexabad > |” me ® Dm stgdyirg)

You might also like