Docsity

Python programming handwritten notes, Study notes of Computer science

Partial preview of the text

Download Python programming handwritten notes and more Study notes Computer science in PDF only on Docsity!

a Python igs a high-level _, Interpretect —_pxodramming language Heit _is widely useol ofr oa et OF dpplicetions. puthon is simple. ane) eau +o unclerstes nd___lomguage _ which Feels _tilke ete simple. enq\ish. it was crecttecl by Guilel Van Rossum anc First releuseol im- aa. — , = DYthon Character Set : ee ——_—_— o leterse Fate Ge ae i digits - OW g * Spectal symbol - 4- & / etc. ° White _seace_- Blanik space, tub, Netw line output + — print UC Hello wort") 4 Cot Programming Wi th Rathoo_ C Scanned with OKEN Scanner | Vviabl es Wil / CA Vaviable is A Mame given toy _ Joc Wore tin af puting velYr\ | ‘ame .s Sagey | CU ae \y > os a rye P W\Oy . Rules — for ldlentiGers a Iclentifirers can be combina tion, Of Uppercuse Une lowernuse LAIgts ap wmolerscore (.) + ’ Fe Tdentinves can be Sturt using igh 3. We Canb use special symbols size 1) ™@y, of sete: { : = lelentifite,_tun. be of any Daa yes oe cS Tteger ee Se —i*.. Foust go | Sh String Sto Soe eat [0 Wile. eee ee ON ee C Scanned with OKEN Scanner binution of digits or w rE using digits “symbols uke C Scanned with OKEN Scanner PAGE NO DATE Key Word ee keywords are reservecl words fn python . \pe's OF o kens pun ctucrtors punctuates are Ssumbols to organize. Sentence structure jn psoqraming. 0), 23) Be fbaai es ih ete += )/=7 x ea Oy Rey teem ke... python _is_ typed _Lamyustge. Kr uf PN Ss f ne mplicut exeltat ie C,c+4 Tava 10 cudnd ¢ String & number numeric Value Con Operuve together with -* fgee S18 ouspur Hes es heeeee print C2¥* xt RS ) “Swing 2 siting an operate with + l Con tut nettHdn. C Scanned with OKEN Scanner Det {PAGE nc (nate © Floor aivers clussest integer, which is 4 jesser “hun or equal to the Flat J value Reukt oF CRB) js same ; Cee i Fido CA be) See OUTeUT ea Airs ; ia: Coe a e Remaneder iS ev negative when clement denominater is neqatve ae A me) => Si Ps output i SS aasis prior CC) | a | 5 Ai.B= si-2 (ose Suey eB) —1L : erint CO) Comment _‘n__puthon nee = - Single Vine Comments rae Waa mull | pisiwe eae : Comm 3 print C Hello") prny Ornetto”) Wi w ak C Scanned with OKEN Scanner SS fb 4 python 3 , i U = a = mput QO Statement is used to Value. _ From user pope! : String mput aaa mame = mput C'nam 2 " ) _ mr input ee ee) a nm (Nem eS Gondtinal varemen} :-_ ie elif else (Syntax )- i€ Ctonditton ) = Syarement + ee Coondlition) : Srareme tr? else statement 3 Aiea Vine Bye 2 Ternary Operator TS Svar > = j@ UppenclL — (mevs) print C List ) si movie | # Siclolet “ a Mies Sou, Te alt 5 movje3 = Sy) ) s aha Pee Bree _ CSE = LC ' sidadat iy) Meer Gervais 1. Tom yall C Scanned with OKEN Scanner Dictrenary in pythen— VU Dictronory are usech 4 Store clata values | in key: Value. patrs a ike SS Wname”: " Sagar! , WocapR 4s Bee Wa. Maries fs U Sa, +S) Ie], % dict Tuname® J, adfctl cSPR WY 5 dict Pmark 9) dtc Ce key*J= 4 value 4 x pmutable Cehanyyble ) ZL. den'* Siow cluplfcure. Kens Example = iid A pregrammingwimrarmoc . j n Fo = & : 1 A ath — WNeiee nose Scar ra Cae ety Mr clololress 8 GUuTarat 4 y g : ering (info) C Scanned with OKEN Scanner C Scanned with OKEN Scanner