Python Notes Till 5
Python Notes Till 5
PAGE
’ Made in 199|
entonsíon
Eabeanal
Shelphab mutine
to
say mulhlhne shahy
pit hem)
aithanche
opator -asignmal
openators
with4-2 a stut can
Sensihe Case
largaue Mcanias
hejin
Spuial holda oda Roeeal i- und ky
data)
[ontane
stat con
Niategi
Vayt
and ale
PAGE
DATE
bbul,=,7,4,2,Ja
ttu value alugs.
Qnd,orinof
Q-y-2
Tssig nwes opuudor
ga 2
b=6
b+=3
btoetrabng7
b-53
ba b-3
opcrads peronsk
opeaahr
incRemUt 2 deoamue)
Tuhtalde
prkt (Txue and Kale).
i (fale ed false) falfaoeac.
privt( type o)
31.5"
prit (typeca)
DATE
PAOE
sh() Jot)
hatClnhin
Tnpuk funehoa
ln ect("Cnte no. ) = 2
b
I will Shore Huls co stmng
|2 (J w/II
eoncatasings
a2 int ( T4 put (" Enta no")
bfnt Cinput ( Entouno. )
prit (ab)
gak
noh mak then b
charaderes endoscd
=0. 1 2 34s 6
Sice= nawmc[0:37
Now
skip value
¥ shig.cqunt )
print/namC. Caunt (a) )
Shia-fudCand)
pit(namefadCasa )
qives inde
thaf wo r
kuJyasd
segoace chamcas
Escapc
beckslask"
Esape seuute dhuacks
backslasla
pouty Single
DATE
PAGE
Horlolg
Jaya namy handhu
pintca)
iayao Nigahi Aanakika""
Prafce set
namc
)iamcnput("Lnta ame)
nayneauubt
DATE
PAGE
9.2
Shings
st ake Can ac
amd inola2 al
elenten delete
ndheat s$daka
ondle the gd s D)J: 1.bntend
kunchiars kit #
walue G-contais
settype data
DATPAGEE
* Tuplks t s immutalle glhauise Same
-(1,2.3)
Concatenate ra+
Count()
qires thee fadese o oceuTNLe elest
T; tountl) = 1
indel)
elemest
Cutput i Tue
S1 ake the
ist
Ch-5
J is acalle cton a kys- yaues pais
as key velwe"
l00
Bubu
st"
ib value
prfnt(a ["key yivesik vale
print (a 'sFJ)’
L
’ Dickonaz4 e cn ndned
mutable
jnedesed keyo
No duplicate. Cannof kaue dupliat
ho sKh
value same
Dnehods
Didonang
givea ik tey salac pais
BATE
thapdake)
9ives None
deesn' exist
dit.clead ) dlr
d pap(Juy, Valay) Aenovs speilis he
dtánt objec.
PA3E
1. unordered
R uninclered
3 na uay to change foms in set
4 No dplcate ualues
Aen c Rekuans lengthefchlemfe
S.vemore() Mems he
Spop(yemevs randomelement ad setua
S.dea ):
S.unlon ( I,1): Aes sct o'th both value
n seks
SSL2,3, 1, 13 incbuskslgL
tus
sdl2,?)
D
DATE
PAGE
Q24,5
nion $2
S1e
pridt (union)
12 3,4,5)
print (st. union (52)
is osubsct then
tue
prit(9isupeact(& l,23)
supast
DATE
PAGE
Prochte set
prgam lo cICale aclil hindP
kards englesh transethin
AJOrds='kelg ! Bannon!
IRob' Ju'e'
S.addn)
S=set)
n- inpat ("tatea no)X?
S.ddel Cittn))
pink cs)
DATE
PAGE
lenCs) = 2
because on python Q.0= 2
Îs u
Create cmpl, die teke_ame as hu
ualue rtm
d=3 input
e-updato Ct nmetan)
prik cd)
* name i6 Ypcatd af any2usee
khan the tanguaeuil bc
Rahul' 'us
Rahu'
DATE,
PAGE
Ch6
Condiion al enpreasfon )
decesiosa tpndd a
sheud be met conction
Syntax (condihb):
priut (no)
else