Docsity

Python Notes, Summaries of Computer science

Partial preview of the text

Download Python Notes and more Summaries Computer science in PDF only on Docsity!

ee Se 4} a PYTHON Notes _%&__ What aye the features of Python? . — Puthon. is an fntevpyeted _, ~obtect Oxiented high 3 a Puthon has simple syntax Qs compared to ether languages. Purhon Allows @ developey to yi xvite pyvoqvams with fewer lines - Llevel py04 vaMMing language. - | the code can be executed aS soon as it iS Python xuns en an interpretey Sustem , means larritren - 2K What ave the Common built-in data tupes in _puthon @ ATUL compeR CLNKED I) « = NOTES GALLERY (TELEGRAM PyTHO TA TYP UMBE Ser | SEQUENCE teger rel % 1.20 4 5-45 E ied ae tyuhtie “lists aye mutabie, tuples on the other ——an but tuples xemain consranr and cannot be __%&___What is-the Key difference between [ist and tuples ? res |The Keu difference _ between +he two is that i. hand aye jmmurable obsects . This means that | Iitishs can be Modified appended or Sliced Modified . eee *K___lalhat axe loops in puthon and aives its tupes? => IA boop 3n Python is Q contto! Flow ¢rarement tnat is used to vepeated|y execute a_ayoup of Statements as long @s “the Condition 1s A tunction is @ selection of the program is vivttren Oxy Qa block of Code -+hat ence and can be execured wihenevery Yequived In the program . “Three types of functions. prue jcompr( LinKeDin) - NOTES GALLERY (TELEURAM ) | ) are some of @_ (Built - in funetions * copy ( ) len(), Count ( tne built-in Functions. a IOser defined functions + Oser defined functions defined = the ce e ? usey tn the pyeqvam using a Keyword . -|Pnonumous Function < Anonut b. d Cuncton Hf rz Wihat ts 4 class and an object 2 aon y _—— — — — template ov a bluepyint. which conrains —aa — the class , which contains the Instance of ey SPe [CLASS]:- A class can pe understood a8 & —.Some values Known as members and some ____[Set of yules Known as Punctlong. © JOBTecTI = An object xefers to the instance of the MemMbeys and benaviouxs defined tn the — class femplate . ATUL ev INKEDIN) - ee Gt ee (reLeame), —PTn the yeal world an Object 7s an actual -entityu te tathich q user jntervacts wiheveas class Tg just the bluepyint fox that object. Se What ave Keyword jn Puthon < =D Keyword In _Puyrhon ave yesevved words that nave cpecial meantng « Keyword cannot be used for variable ox Function names. There ave 33 Keywords in python, some of which are mentioned below: = and — brealk io 4 Lm ae —? Saver | => else —=_yeturxn => for = _\jambda 2? phile 7 tye