




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





hy leayn Puthon
language
C
EGSy to use Qnd earn
Intexpreted
language
Embeddable
AUL UMAR
NoTES 4ALLErY
Dynamic MemoYy Allocatlon
"Cqur Programming suppoxt.
where is Puthon used?
clacstec
Dara science
Mobile Applications.
Machine learninag
3D CAD Applications
SpeechRecognitlons
Extensible
NOTE
:
hexe /s no
use Of
Cusly braCes ox
Semicolon in python
prog7aMmin
|anguage.
Rathon tYst Program
Print"Hello aNorld"
Dcie
AUL MR LUNKEPN).
NOTES GALERY TeLE;EAM).
|eb Development : D Janao f1ask_ lyYamid
Chersy Py.
GUIS based Applications : TK, PyGTK, PyQT,
Machine |easning : Tensorfow yToYch
Py
Scikit- learn etc.
Puithon axiables.
Mathematics : Numpy
hold alue:
is alsO Knon as
identiCiex and used to
The for loops
iteyating
sequence
St tement (S)
Sequence. It is fyequently used to traverse
dictiongry
Outpyr:
Exgmele:
S+Y= Vedant
foY i in stx:
Print(i)
age
a
else:
classMate
t
Date
Page
aqe int(input("Enter your Age"))
AUL eMR LINKEDIN).
NorES GALLeRY(TELE4RAM).
print("yos are No eligible to vote"
The elif stQtement
Suntax
TE ConditlonS:
Conditions and executes the specific block
OF statements dependin upon the tue
Condition aMOng them.
classMAte
else
Date
eif condition :
Rython function
Page
*blocK of Starements
elif conditBon 3:
elif condition 4i
ATuL KMALUNKGDIN).
NOTES YMLERY (TeLRAM)
below
Pathon function axe the Most iMpoxtant
aspect of an application. A Function can be
setined as the oxagnized blocK of
xeusable code, mhich can be caled
Jnhen evey required
the function. The syntax of the de Cine
Funcion is GiVen
Date
q
=arx.axYay('i,C2,4,6.
arr
print("yst
ExqMple
ATUL
FiYstelement
:
Second
element
: 4
2
Qurpur
Python
Sring
Stringis
Syntaxi
Sty = Hi
( vedant
String
indexing
print("Second
element:"aLI])
KUMAR
LINKEPIN).
suxounded
double quores ox triple quotes
clhssmta.
Date
Str=
Hello".
E
L
Pslnt(&t
[2])
Print(Sty
[3])
Print(Sty
(&th
[5])
StinaOperators
t 0 Concatengte
the two string
E J’OAccess the sub-Stzings Ofa
Tt is used to pexfoM Sting
Poxmatting
Oubeut:
enteyO
number
= 55
Sum is[0.