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

Python Notes with OOPs

The document appears to be a fragmented and disorganized collection of notes or code snippets related to programming concepts, including data types, operations, and structures. It mentions various programming elements like variables, lists, and functions, but lacks coherent structure and clarity. Overall, it seems to serve as a rough reference for coding principles rather than a formal document.

Uploaded by

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

Python Notes with OOPs

The document appears to be a fragmented and disorganized collection of notes or code snippets related to programming concepts, including data types, operations, and structures. It mentions various programming elements like variables, lists, and functions, but lacks coherent structure and clarity. Overall, it seems to serve as a rough reference for coding principles rather than a formal document.

Uploaded by

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

Macbine Compieyy Cole

I»epeter

Fee k oten source


Goaes

Portable

donetion

’letters - A to Z, a toz

-’shecial bymbob- t,,* ete.


’ othe bara cers - hon can pees all Aen ane sicoole
haraetens as barl otlata
Yayfab les A a eaorA oaton a
valae
"Tanish
Age 2)
2194 at
2* Ga+b)
Bice Age
"

Woto

Vapia be 'a!

h f e s can be bombin tion ot ufheoase and loyerense lettors,


«nderscore l~).

’Sdeniier oan
a be ot ang bngth
Wote
enttfer sboud de shords sipe& omeaningi2

J» tegers Cist) Ye, -ve,o


, et.

’ Boolean Tue , F, e lbools


’ None’a one (None be
y lbon

a = 2

Sigle Zine bomment


operato
Yeainley

Avitbmetie opeaZoys ( , -, *, 7, .,**)


’ he btional omayise boheva tovs (==, !, >, < ,><-)
Agnent ohera ors (=,t=, - =,#,,Z-, *=)
aydy on)Boo loan

ybe-int)
a, b= ,2.0

Gonversion

a,b= , "2
a
SOqhe ce ot eharac tey

-’ lonca tea tio


"bele" "ork "helbok"

index besd

Golle fe
sta "bmollye "

s-"Ana bo leje"

Mega ie inden
A2e
-5 -4 3 2 -l

ocuYe

ount"am")6oun ts he oerenee
-’ st.
it-eli.-elie CSYATAX D omde saoent baed on mrhs
"B
State men?1

Sta temgn2 rnd

state met

can
ept Is7, 64, 74, 33]
studest= "Keyby", 85, "DelBi] # dent o,stude t LJ..- .
sldert Lo] "Arjun'"
mot changerble
value can be accessi ble anol ohanzeble
both

istqme
7,33,9s, 76 J
a bá = I87,6

arks [o: 4]
marksI:4] ’
33,45J
marks [-3;-]> [

2ist= L 2,,3]
st. append(4) tadds elegt at the emd L2,I, 3, 4]
3]
sor in asce roli orde L, 2,
(reserse = hue)# sorts in desce nolin oydev /3, 2, 1]
hs2- jort L3,1,2]
list ve vevs e ()# rereráes bstleoetat inofex
e
3t- ba sert (idk,el) # áertiSt ooc4 YönGe ot elegot I 2,3, 1]
2ist. vemove (i) * reovÛs at dx
e2ue nces ot valves.
t-(87, &4, 33,9s, 76) # tut [e], topEiJ,

ib3 = , 2,3)

bay (2,i, 3,)


tub. bade xCelD votms ndex et trst oecutroce, tut. index C

Dderaves ave sed to store lsta

meaningI
baiys
Sndex o, !,>
booloan

he ollee tien ot the an orderd iters


strinj
tuble
dzt x

Sts are irnutab hash vae


add Cel) #adds
Rbasbab le
element
a vanea Vaae

Break : a tormie te he bob hen encoun tered


exc he
l, , 2 , 3, 9
end 5

Joy
þyin i)

thor

Fntion fmiton

largt,a2..) # oneBion col'


end = "
ole feul!
passed
lecbs
a

HDD

loxt Fiks
tt, .docx , - j ete
deme. dcx

Mode sharae

tex? de (de tu2)

'+!

tu?,")
is is a ne

f- «terC"demo. h',"a")
a Go de bavg)s ano he

ins tal! s mole

es. re moye Cfilehame) bib3 ins tal s ole lo

objsds
ald Objt ovievtd gomig
Studert: ")

det_ init Cseld, lome):

hss. and is's

Vniverpo
Váviabe Stored

bruce (obj az?)


kayan
olege
collge ollqe
Bstratio

data

nctionanoher

51Sudent
C"karan")
obíl
bjeoi). obj26
closs
avo ?her cbss Cparen t Jhase )

e rta
| Bse | Farert

hod
thod alies
thod

fis?

det olege Ce3):

ehs

be
thod as

a.-adoll)

a* # ou piatiy
# isio a. ruely(b)
a

You might also like