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

Python Short Notes Chapter 1 ?

Uploaded by

sneha2332122
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Python Short Notes Chapter 1 ?

Uploaded by

sneha2332122
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

M W

Page No.:
YOUVA
Date:

Ghopter 1Introduction
to Pgthon
I11 What s Python 2
thon is a general-puipase,dynamic high-lexel
and
inteapueld pragamninh kanguage
"4 is designed to be simple and easy to lean, making
it an idea chaice. for bedinners
|: One o the key shenghs of Rgthon is iks vesatility
Pethon suppatts the obËect -oriented proqramming
appipach, allaging devdlopets to caeate applictins
utth organixed cthe reusable ade
12 Featues of Pytboh

Puhon's suntax is designed to be clent


and neadable,making i easy for bath begin ers
QCuTiOUS=proganme
MT W TFS S
Page No.:
YOUVA
Date:

Singliciy
Igthon emphasizes simplcits and avaids
Complex såntak, nakind it edsier to leatn and use.
campared to cther progranaming languages.
Dunamic Iyping
Python is dunamicalls tuped, meaning you
dont need to explicit declare vauiable types.
Latqe cBandard libiars:
Ruthan provides ayast standard libiazs
with reads -to-use modules and functians for variod
Hasks.savn devebpers tinne and Purnchion ethorts
Lin implemrtibg common Aunchiondlitiea
Cbiee -Oriented Prgramnin (oop)
Rethon sugpatls the cbjuct-aienked
obiect-
proqramming paradigm, dlowing for fhe ceation_and
manipulaibn o ohjecclasslss and inheritunce,
Class - Platfom Compatibiltyi
Pethan is avalable, an oulliple platforms
inducing Jalindous_macOs .cind Linux,aaking it
urious-proqiamner
MTWTFS5
Page No.:
YOUVA
Date:

Extehsive. Thurd-Parky librcries


Rgthonhas a yast ecasystem ofthird-park
libraries and Hanewotks that expand ils capabilities.
in dierent damains, such as webldevelopment data
|analysis cind machine. learning
|nterpxeted Nature
Puthon is an interp1eted Ianguage.meaning
it does not requice compilaion: This resulks in a
|faster developmentcudle, as aode.can be xected.
Ldirects uwithout the need fora Seprate Campilation
step
nteg1sion apabiltias:
Rgthon can easily integake with other
lanquages like C, Ctt and Java,alowing develapers
to Iexerage extstíng codebases gnd libiartes.
13 Aplications ot Rython
Pathon is widels used in yariouS domain
and afens Aumerous agplications due to its ferbilets
ond ease of uGe Here''are Some kes areas here
Rythan Ands aplicdians
M T W T F S S
Page No.:
YoUVA
Date:

WebDevelopment
Rythan is extensivelg_ used in web devela
pment famewoiks Such as Diango_and Flask These.
fiameworkS pravide efficient tasts and libigries to
build dånamid websitas and web appli'cations
Data Analssis and Visualization
Pathon's Tich ecosystem of libiaies inclu
ding NunmP Pandas,and MaBplotib,make t a popu
lar chojce for catBa analsis and visualization- edab
[les prafessionals to procAsS ,manipulate and yisualize
data etechisely
-Machine Leayning and Arifeia Inteligaence
Python has become the go -to lanquae
for noachine earning and AL pigjects lbraries Iike
Tensot flow,.keras atd sikit-lean provide powetful
toals for implementing omplex alqorithms and
haining models.
1-Atomatian and Seuping'
Rethon's easy-to-read suntax and apid
deyelopment cycle. make it an idea choice. -or
autonaion cnd riping tasks. H is commanls usedl
airious-.proqrammer
M

|Page No.:!
YOUVA
Date:

14 Python hstallation
T6 dounload and install Rytbon, tollow these steps
For Windows
Visit the official Pgthon_ uebsite at
JM Rthon.arq /dounloads!
| Download the Python installer that matches youn
aystem tequihements
| On the Pagthon Releases for Wlindaw paqe. select the
liok for the latest Ruthon 3xx eledse
Scrol down and choose either the "indaws X86
G4 execuable. installer" for 64-bit or the "Alindows
x86 executable installey"or 32 bit
Run he douwoaded installex and falloua the instu
chions to install Puthon on your lindows sskm
For Linux (apeafcaly Ubuntu
Open the hanty softuare. Center folder on your
Linux
From the Al) softwaye drop -doun list box, select

Conious-proqrammer
MT WT F S S
Page No.:
YOUVA
Date:

locate
on it
the enhy for Python &xx and double.-click

click on he inshall buton iniiate the installation.


piocess:
Ohce the inchallion iscomplete, close the Cbuntu
SoFtware Centre Folder

16 fist Python Progtam


alriting your fist Puthon proaram is an excitind
step touwar leauning the anguage.. Here's a
simple example ta qet you started:
ahated
# Prinin Hello alagld Usinq Pythan
print (Helo wlanld ")

letss break down he code:


The print() unctian is used to display the specitic
messae or value on he Console.!
In this case, we pass he string "Hello Aold" gs
an argument t the print()uncion.
cumiQusproqrammer
MT W T F S
Page No.:
YOUVA
Date:

The. shing ia enclosed in dauble quotes


The # symbol ind icates a comment in Pathon
Gommensare ignored by, the interp1eter and are.
Wsed to provnde explaindtions or hates tato the.
code

Qumious-sproqramne

You might also like