BSG hat ave the featuyes of on?
PYTEONINotessamas =
=> Python is an tnteypyeted , Object Datenred. nigh
—jlevel_pyogvamming language.
Purnon has simple suntax Qs compared 50
_otnex languages. Python allows a developex to
write pe with fever Lines.
n an_interpretey System , means __
be executed 9 $00! ip is
nse
2K What ave the Common built-in data types
= => in PS eR bey Greceuean
a 0}
JOMBERS) eT
ENCE
regex!
20
|
5-95.tuples ¢ mee eee a aie
=> [The key diffevence between the two is that _
——wihile lists aye mutable, tuples on the other
haa axe immutable obsects . This means that
—___lisfs_can_be modified , appended ox Sliced
but tuples yematn constant and cannot be
Modified « 3
1A.
Condition | arisFled types.
z ov \oop
#23 nile loop
do. while loop.
What fs the use ef break Statement
e brea rateme
1s : o +e
n K Jaf
‘the execution of the current loop.
Ik tvancfevs the control to outside the
flock
If tne bveak is in @ nested loop, It
exists fyom -the {nneymost loop.— What is the swapcase ( ) function 1o_python?
4? Tr isa string function which converts al
—uppeycase characters Into lowercase and
vice_vevsa- It _qutomatically ignoves ail the _
—109n — @lehabeticeiChayectey.< . aii os ee
_#&_ What js a negative Index In Puthon and
Why aye they used 2
=> ‘The Index foy the negative number starts |
from ‘=1? ana that yepyesents the last
ndex , Me sequence carves foward like
the positive Numbers. PoUL koma (Linkedin)
NOTES GALLEQ] (TELEGRAM).
¢ The negative fn is use. we @
i om ing.
eh. tive Index f. oO used
-the index {0 yepresent the tying fn
Oxyect ovdey -
‘alhat fs a Alctionaxy In Pyrhon 2
~/ Ah 1
an a
thet: ° ely
1 a a i
1 tet = 43 India’,
‘Stare’ tf “Mahavashtva’,
“etry 1 t ‘Mumbai oy——] What is 9
lambda function? —
The anonymous function tf nis 2
___| Punc.tion that is defined Cranes wranie. —
—_— The anonymous functions axe defined
using lambda function vatner than ‘def’. —
*K__Expiatn FPuthon functions.
=> A function ts a selection of the program
__loy_ 4 block ef code +hat ts vivliten _
wence and can be 2 hn OV
—____bfequived in the pyegyam
Ts “Three types of functions.
a feu jeom, INKEDIN) -
@_|Buitr - in functions + eee ).
copy() , len(), count() ave some of
tne built-in functions.
; ser defined functions :
User defined functions defined
‘ace
lusey tn the pyeqvam using,
Keyword .
onumous Funcrions 2
nm U,
with the ‘def’ Keyword.A What Is 9 class and an obsect ? pee
a - A_class can be understood a3 3
template Ov _a_bluepyint. which conrafns
—Seme_values Known 9s members and some —
a Set_of ules, Known as Functions.
efeys tO the jnsrance of _
the class , which contains -the tnstance of
the Members and benaviours defined In the §|
ASS ote Ie, INKEDIN) —_|
NOTES GGA (TELEU RPM),
___=FIn the veal world , an object fs an
a actual entity to wthich a user jntevacts
wiheveas class is just the blueprint for
thar object.
JWhat ave Keyword $n Python ¢
=> wee In Puthon ave yeseyved Words +hat
cial eantng . Keyword Cannot be
ee fox _vavxiable oy function names -
hexve ave 33 UIWOrdS on, some of
e men ed b
=_j\ambda
> edeyue: