Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
71 views

Python Notes

Uploaded by

rajaupp47
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)
71 views

Python Notes

Uploaded by

rajaupp47
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
You are on page 1/ 10
Clean & Neat Handwritten A Ante), NOTES pay ae Prepared By 3 ae Follow us = lAlebsite : notesbro-com. What is Python ? __@notesbro.com Python is_a general-purpose. dynamic high =level._amd_inier- ~preled programming language. It Supports Object Oriented Programming Approach to develop applications It is simple land easy to learn and provides tots -of high ~level_data om [Lele elutes atin sain veh ee ‘fiitiocn is om easy-to-learn yet Powerful _and_versatile Scripting language. which makes it attractive for Application elvesrelopsren jean ee 22 With its interpreted nature, Python's syntax and dynamic _| typing make it and ideal language for Scripting and _| rapid_application development. ____ _| Python Supports. multiple progzomming_patlerns, including _|object - oriented , Imperative. and funcHonal_o7 procedural si — {programming Styles acetic Re | pylhon makes development_and debugging fast _because_no- | compilation step is tncluded in Python development. Land the edit -test_clebug Cycle is _very ferst _ Python is_an_open- source. Cost fnee_pangnamming language. ____| I ts utilized im several sectors and disciplines as a result. _ NaS 4 - Python Basic Syntax + needed. for example - __def func 0: Statement 1 | There fs no use of curly braces or semicolon in Python — | programming language But Python uses the imdentation to define a block of code. Indentation 1s nothing but adding whitespace before the statement _when_it is — Statement 2 __ statement N | Features “of Python E Easy to Learn and Use > @notesbro.com a _Extensible | | | wa Easy to Learn and Use + Python is easy to learn _as_compared to_other programm= |= img languages. There is_no_use_of the semicolon_or Cunly- bracket, the tndentation defines the code of block- | penny “Expressive Language : | Python can perform complex tasks using a few lines of _____| code. A stmple example. the hello world program You ~attally ie RM will take only one line |to_execute, while Tava_o1 C takes multiple lines. eater ienrunge ii (iviven te thy eden Bs | Python is imlerpreted language + it means the Python — program is executed one line at a time. The advantage lof being imterpreted language. tt makes debugging ___| easy and portable - sal 8 é _____ @notesbro.com Si Cross-platform language + _ i | Python can tun on different platforms such as_hindows, | Limux, UNIX, and Macintosh.etc. So. we can say that Python is a portable language. It enables programmers _|4o develop the software for several competing platforms | by waiting a_paogram_only once. 5) | Pree and Open Source $ = Nei eae _| Python 15 Freely available for everyone. There is mo _ | need to pay for downloading and installation, as_ | wellas source code of python is_ available on interne} ____|simply_goto on its official website www.python-org. ___| download by seeing its version downloadi | eee Applications — ie sis ipplication z a [oxNideo-\ @notesbro.com am Python is com-mon fueeietee rte eet een ae ree | Python comes up with a wide range of Frameworks. like Django. Flask . Bottle, omd alot more that provide ease to developers. Python has imbuilt libraries and | tools which _| make the web applications| development process completely effortless» = | Use of Python for web_opplicat Manes |» Amazing Visuslization poe ere Comvemiemre in =clevelon men : ee ees ot ee aoe ee » Desktop GUI Applications + — > | The GUI stands for the Graphical User Interface, which provides 0 TK Gur libravyto develop a user _interPace. Some popular Gvz_libravies are given below. __— © Tkinter_ot Tk a Ge a _* WxWidget™ fee ra za Kivy Cused foa writing multitouch Geplicalien} i paar SER ae lei ee meee emdemiecAmsniecipisi 3) | Console based Application + 2 a =| Console - based applications aun from the Command =limeor Shell. These applications are Computer program which _ _ | ome used commands +o execute. This kind of application | was more popular im the old genevation of computers . _| Python can clevelop this -kimd_of application very effectively. [Tt ts very famous for having REPL. which Means the a [(ResweEWaI=erat Tena that makes it the most suitable ng __|=uage for the command -lime applications.__ a Vey iterates many free | inenevern module ane nenelee _|4o build the command -lime apps: The necessary libraries ore used to sead and ussite. Tt helps fo parse Langument ond create comsole help text out -of- the=box._ There are also advance libraries that can develop imdep- ___@notesbro.com awe | Date Types + eneeecerte cua Data types are the classification ov categorization of dato | ikems . It sepresents the kind of value that tells what | operations cam be performed ono particular data- | Simce, everything is am object _im -data_types are actually classes and variables gre the | _| Standard or built -in data types im Python + wets * Numeric ss ise eee Oe c cen nce oa cela enya nsaass LS fealicren ear ee Vekess * Set ery hr: — 10 idtineen ig.2 Leer Bee Sas Rica aeely pe seein sa amen ig .wenenieabeas @notesbro.com ? Pee > | Numenic + iy | The numeric data type in Python sepresemts the data | that has a numeric value. A numeric value can be — [an integet. a floating number. _o1 even_a com plea number: These values_are defined as Python int. — | Python float. and Python complex classes im Python Bartel pees | | * Integers - This value is represented i inte class It __comlains positive ov negative whole numbers. ___ 6 Float = Floating-point numbers represen! numbers — |__with clecimal point or functions. for example. pi= 5-14 * Complex ee Complex_m umber ig_acpaenented = e | by a complex_class It is specified as_(real part) | 4 Gmaginaty parth) j i Phoilexammp lena ee a _| Dickiomaay 2 _______ ee a “Dictionary im Python is _an unordered collection of data values. used to store data values like ama p._ umlike other Data Types that hold omly a simgle value Las um element, a Dictionary holds a key + Value polr._ | key-value is provided im _+the- dictionary to make it |more optimized. Bach key-value pair in a dictionary — Lis separated by a colon. whereas each key is separated by soe tenmmot @notesbro.com Boolean + a 5 “ | Data _type with one of the two built-in values. True ov false. Boolean objects that are equal to True are true, ; 1 You can download full PYTHON NOTES from Our Website www.notesbro.com ae

You might also like