0 ratings0% found this document useful (0 votes) 262 views22 pagesPython Hand Written Notes PDF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
+ Ba
“ Yinien ino vig Juels Yate ond ope,
his \ AP easy = 10 \is.,
in do not srdQuire ‘rernpiration' \\
s-dy ine “Ob iak sOviented Rroweomnm ing
+ 4s “in “emnbbdta within “Cor fe pre,
[Z
re —i\
Ms —
Hee pes Anads og powitn hark i ir
Sok
Sypia\_and ean, ~ Wot came ek carte vcs
ater Agenty = SUCADY fx usin
+0 oe eae Xoaie wepsitt o
ie me nnwbaesnggNA wan Larter
_ NASA on ‘Work ow Aukomation 1: ‘ : —
lolhich is wristr in Dynen
Ws Arend-end
Aon.
Myo woe Sures.SAGs SVT eke
3.9.0 jx Wow Joke version of Python ie
y
Futare of © 2
Putnes Pao i fonquraoe is
tte aat ein A sel clewelopinent,
yplocs duutoponl
Eppa A cleublo orm unt’, ‘ns
eee ee tT pe
ewe
Ree Aatapse
Coase with Pythen ran nade —
“ae Popaible Meaq nig e ign agen iheon
: The Juror pcope ob Pytoon programs og
fan alsa ‘ne Oreditked buy Yor
Lon quiche
woo dk non’ Jnriped “Big, Dako! deer nology —
so: Sqreous Troovg. is ft
koothiks and \i tattle
+ Networking jn another +ield jm wo
ho, oa brighten ACAD In hotune
+ Further development pn Python Ores gea Mm mi
Owe oloo in prouDA whith” will males Te
Mone _penpaki be ond kash prow sing.‘rowscomig Topics.
Romment = (4)
Comenk in Python in uned to give thy
Additional ne tutta in janim-abfan ob
the intr ohion or codes
Siti doa poate a program ut nn:
| ertaitatble
heme tnt cont ioe tat 02821) pas
Whih Cemrnenk is speciticds or yoriten yp
ds Hoyds Line On Pai
BAA lee NE A dhclient
Sings Aine Cerne nt =
Exomol es te i rr m Ano
prin’ dhe vind an Sir
Triple si Ww »
ont ned bo
Mur Line) Comment2 S B
untd 40 pin honns Anme specie
One
Maywords Oar
or
-PuLpose. es
| Viner oda 9.5 any uinrds in Pyfin on.
| ihe | oti [tse | tor olnie |
bs
Spine in 2 te | aot | ta
a i rel ast 7 | Unatty |
ee
s ussrt async | await class ___giolo
eae eee tice a} __
Asai hiiucss p
_Tdenti
Lf yin.
[ Deaton Wt ued 4p acer dey tne mt
Ne (Tadan ts un)Tarntitinn sn auld aluanays pk tnt unite ‘a
or underssore +” Aol oued by any
cembinaion ch olphable or number
[ Patampin alliemae = NB
num die bt
=food = pigga? = ee
E \ A nb
Se any Spl hci E
Panomplai i=iuimbieas B11 Genames Le. ye
» Tonk bien sagt mets Mint Contain ony
—blonk- po seu special choi citer,’
»Lmobs LAAN C
feen ee si sa
Kowivordd akeinot ned a
Laxomplus Trut=57 , fale =O. and-
ings re guatsal = a em ie?
Bou tas Tn NUMBER and number
ane inate oo_in tore Plan j»
=. Aerie.
aL
a + Numbers 5 numbers5
Af Nome=‘Foler’ + NAWE =" Joper’Coe)
Voriobl: ond fanstank: ioe = ———
x
AVoniables «
Voxiob\e ore norning, bak He tened roemor
Loradiind to stony Yolen.
Non
Jhusucyn eu program
a aM
5 nam ¢ ik!
Examples mumibur= 59, name>" Ryuga’
gorat =" Acoliistr™s OS = * pheonix’) +
e.
ok ent - Hynes
tg. es prncihs enaser = 5
{we can assigne _ent_ualue js one Parcel
i
oe oF Ame
ant »
é 2"'th ¥, drink =
“voniob)e ak a dime
ego Mawel = g's6 020
cen SAD w bap 'e
org ime. a
first, Sean d2 third 3= gold" J Stlvur' i
7 24An Constant one Scien in
| Casha Sed uns eo
os 15:30) is
RADIUS = 64000 Aue Wh.
| fikerod Constant & Bch
: +9
——hivrral on tae Rows Data given
or Constant
| (Ser more. iston ote pdino.-- ) Beis
Type
Dota Tr are sat ko apuciy stich type
ot Wolie ine aed io. a uma bt
ce fia Pyne Sstapi tox Saka
Se h-hh sae
Loan | Bins
Ae die ade
de need not ko deckone tne datos pr
plik declaring o gets. -
ur ily ote f
L Odea "Cem men Ay
Innit. Gis AasROM maya
LOM19,
Nom eric.
Tnt © 4k nalds “old Hoe _inseg er Valse. oso
Binoxy Octad
ea holds “ pumbtrss with Aromat
bs canciinaitiy in Upto 5 anaegiee
a complet Ai holds Con plow Aijnoskoer Corals ipags —
NO Yale)
\ - ft ing A g
PU Ha coercion of ninmbias, alpha bate
and shanackens <”
$i Aah a cose dwt 8?
ao cee
2
==:
yoam-num + D isttvens Rophar “@120"
th’ Wam-thar=" Hrs \”
a Nom-Num. char=" TI. gor 94-95 ¢
rene ane / oy te shak we Can se. wilh
* ee
ped £ Gnas Ny 4 9 O94
+ Yoo or mon string Lt to join fhe try
2 stress Grau”, sie 2- “ mie sompetX
print (sari + sth)
if Ucky quresorne,Wa nepitiions Sy une Aooaepeate 63h,
Examples: sit = “hielo” +
I print (Sie yay —
> Wito hello Hells —
Di Lists sh is a coll action eh sm eh
GOH iy,
Staak ype ob eka. enc
Pathe oc Se
-Lramples lish = plot Silisay uty
Nishel=(h0 DOC Mb yROU 8)
is \i pulang in0/Gtt
ole Also G tH HO Ok some or
dahon Hypts + aM Gorka '
The tleminta are enclosed within round bracket,
Land 2
0 One inn F lohe Lokam me tt
|
|
i
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|Seki 4y |
iy
dt in encvosed in aunity ‘oracles f | cand —
‘py
dk win tor ane vobie
on My once.
1 Some
Ue “We
Voni ole.
dola- hype _conuension Wersion. ae
xo! paowurk
Faowing are doka® e eanversion fanckion
inky , Woot, enmolexO 1 bin), ockO nex C'
dich) stk)
Honk; string bin,Ock, hex, bool = ai ther datokype
con Sint! a
bin-Ob 1 ork- Oo 1 hex - Ox
int, string bool, bin, nek hex - tan be tonutnded
; jta 2
of int Anat boat din Orbs hex = tonvented to Cormple
_ stringy -
\ i hy
ny
list» topple dick, set. String.
OF i»
onlu can sidered op Colne and htnk Gh
in D _clotsa'b
Palestinian io —pfbonska ktaink yoo} rHin sock converted into hex ;
— ints hon! bins be —conuecttd inks Ook
9).
String , kuple icky sek © conuertedt SMO List
oP Neate ype oon be tomuinted inte dice
IR aay a
Loe vit ip aree disik A
Fi xxi
| # 6
} Shle,
y ays
+
eer.
_An python is ‘=
Ostrd-
Tt function “input & ) js Ustad to input dota
Aypinx aut (UegiEromyles nome = in put C)
Lut Addyres = input 0 |
ALUM ber = int (input )
«
nd Dumbrd’= j E ic)
Gut put Optration + :
yenitor ‘oy. unig print Fontan.
Suynkon.. print (_)
loriWen in print 1) Ann chien in
0
as!
Aw dovaty pe wrikta in print funckion ton be
yoRupn Op _ubput -
J
Euomples pint (Ware World”)
print (Enter the number: ")
int How ave yeu ")
prin Ae NY Bie ry LOD
peter (Sr lj Sis o cpm plex )
ei Thin unaien is ward yes Formas the
ig
thi __jndex
Syntax: ie | on
ei prin (“Yohi's a Sen of £13”: formartsom :Worcyd) _‘inain jabinn in a tama apate ak a
in iy
‘ ot »
LD (404
‘| , 1 onint ("Do sikive wo: Y)
He _ bot pi Ne aoe tam
pris Neg ake Do. ")ithmetic 6 te
pee pein cu WneA to penton
Spurakor | Read as Moning Exam ple
a _| ols “| Addition ‘npimtor used Sor | 342-51
At wp Pieciilse { |
f= | ininus | Subtration optaknr used for [io-B=2 |
Om harming Aubrration of
kwon
4
Ot Agia numb tr
Psi Shy
Division Optrator used or
Drverming division of
Quo ust
mod Modulus Operator sstd Aor
division ond Kekirn fro
yumoiin dee yale
Ay.
97
toute | ony
Gskrish| untd tO Ape Odwee ol | =
num ber
pee
slosly | or division and warn ti
| 3g
Nae in nreqre every
3
J| Untues ond exlabiisp webobinn sare clr cn
alee
> han apniotor, shou Yoo ‘Jota |
opnand is qoenler Yeon maa “operas
tala Vox onus ip aabusenys efter Pru or
| The Waduie oe comaicderta on—Ealat
Apert | Meaning
and Gand b: Trae it Anon tn od Wu |
Toure) otwarwise als
or Oop hy Palau iy bat entrand= one
te Foie, ctneptorse’ “True
not A el |
Fodne ik Tous i
Maunbur : a
Tnese_ G: i Gnd Wherlnen
ip squsnpet]
CoO
Thests ‘openmtor: ont untd to checke tilntther one
Sj uohiahl, ih indendicn'Y a otinens or et. OR.
thiol Opuntany ost unt je! choca wheboen fine —
Opioid’ is Osh 6 same mamswt oration
Ail, Thor Koni of
- Tdandidy pk Ve _vitnen, Prue ov
de In Bd gy
dnisia/ \ i iy opouand
iy, ¥ .
Meaning. t
ci aib’ hawing pA, mary
AGcatiwn ax “thor ch Io
jonni | o ia not bs return True voi i
is BE co Het Os nous | ARUN Menno re
ie Jovovior 0, ink tn. 9
E fs
Sieings ts goth ection m
chonacker, dw, ore bw Otro hak can
purformed ory -Siring
Bax Hii
a ing’
e f\ tonting
DY Oo sl toncoke nae’ udiria fein 9 op
: ih more Seng
Zz
sale * lp rep UA On © dra Yor ep’
ks
Aiole Ta
BeBe | Rivet, Boaters! gee
ast
Cond {one conridtned ax bik, Bihoise
Bit wise optralnw med iyed so Penton wn
SPthaty
jWisck. ons bit Binoy oh of A vole. e
{ dn Thin givens value” is Feat qt tenvinbtd into
Bin
P Ams in “Binomy is podincad whi tein con
¢ std to pep heern Jowical ond. (boo
GO € ly: Bitsise amd = omubki plicatic:
mulKoliakien) lheteten a ond b.
oD Ritwise Or =) gddifon
iB Mm o
aati
Jototemy a ond bb.
Ond: Ditwise: Loe = Gb sa
<<
>
Sloa74, ymrans make Gat has by
ODA AA ond AGA BHO ak “star hin}
—operator
Bxniniate.s! 9 (4 2) punirrasion
Axum na
eaMO MV IRA ACwe Gh Syne C=O eke,
ake RET or Some ie ee
Retour d sy Hoatnun otios
> Jas _artnonayrn PEMDAS: is urrhul ko runner ting
4) Parentn ests PO) And Hye a ps pe
ond ton lot eae on MoeLekt shi J right shit,
Binuise !
ereda ene
Aijae, of Expression : Lp
8 Thiet ant tiers iy ors “of. Cxprussion in
eoression ik ino normal “nn
sipnesb en jn Nes Sonn ob,
priser yt de
Opuands opupior Qpuran 2
a+b
ony hy
0 4
tg. ab
Posttin Cupwabions ik iA o upeession in
Yor Sonn
(Gpenond-1) (Opmand:2) Opwwator
Bic) “Sn orroi ol?
| ee