0 ratings0% found this document useful (0 votes) 57 views50 pagesPython @1
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
PYqhON
Lagi Wise ee iy
In 13808 P Jeam — Shuahbwbles Soe Sh
fs A |
ata A
Developing dod [wpibuled ope tiny system)
3 1 jonting
eas “AB qo envelop das a
D i dhey uded ABC Language
Gd
|
32>) Guide — Aan Raddum 15 a) member, of eave
Who Ukes progtarning _Neay welll
beg g |
a) Shaded cleveloping hs on Elugusigs and
namedlinad pydlion Language
he Woral V
EDP eqthon wad | jaken: from. a eal Gmedy
Zoual Yo Body pulls Piya cigeus
®] He seleabed Python et storetal Public
[iy es 133i
coats he unloahed — Hulliple vVerbrond of
Caer Tangusae Lika
| Paraons eee aLegion @0, 21 MERE
“pylon So, SU
python Peacaned
pylhen Supporls _Simble
Python Suppor! [e6S Jeads
—_t powerbul= python Subpests Mare
D _pythen iS eben and Feces Ao
sPathon 1S eben! anol Prea Ko
[Neawd: Se lente neal aid “kt
plinewé. dosemdeaelig Lol
Pyfhov Sof tidana. SinPhy ue
|— - [fom WWW Patho» ory Anal ae
MS eet6 }
3) | python ib general: puxnpode ene
s Mani | ei a Bie
python Languqge
de Web. aleve lopment c gnls é a
Ni Game Levelopmond)
WS) Machina Leaewingy dd
g
Lees
D Applica
VOL AWA
WD Te Hy
is qV
ee aes
We, Can ude puter fox Muh ple-
purbode- Oe uth » Called gure putepade
Wav
Tee
® jeuthen b&b portable. Fanguoge
| pootable — Laptop
| Now povab)e = Computer,pee 2 application Ow. “be cleveloped
ating oS (CohraN vy. 4 “Byibr ) and
(Gn sun 2h py othr a4 alko » So
~ Wh td Colla) portable Eanguage-
e 3s python eas High = level Language
python prow 14 _ prenclble thot Hen
Teglkon program leks Lika © Simple lew
u EN
Atatone nhs:
patkon ceeupiesd [eAA Spacey cody fo fea
TS
; stay to Pregaain 4 Bau to more. ee
6 | euthon iA Interpre sec Fava ung
Luiderpreted Live fy Line, So ct eas cae
: _Sicden poetad Lavguage
3 fegtien i) expreddive Faugioge =
a wh python lasiah paea ne ree ifTexpresd our jdaas LY t tha Dein th op progam
a Trout Howying about Synter:
os ee Ups ad
* other developer. ==> Byun + boge.
2 eythan _Sevelopen —-> Aysteriy Loa fe
_&X python ie Beginners Language -
we PUNE frac: begin ut Carton: Hey,
VS J
pylon is He fis) Teheiealy Jo ads beginners
Langa ge p
V
Pathon iA dbjecd ~ on enteod Peep Logue,
2 pithon » Supports «all databases) bike. Ny Ss,
yo
N
we
Oo
cde, SOr Aenver, Hauge b&Y Podtare yl
IS python 14 Vere ch tw Molules-_| Sop booting Aoftioane:
x We gots WWWe Puticeinelenr Quel low wi
q J 2
: python Jopdranro +
x [dhe Poehbs Glen no be oldvewleaeled cin
olownleadd Colelers
x [double lide on debby We and a
open aud dlusblay phe mains opirauas j
a) ENSTALL Now
Ba We whee inhlall Now then python Sop
tnd tolls tw the ee olehult path
€: Juba [Neraovn] Apbaaty] otal Progamd
Py thon 3)1)
D9
i wil] Inelucle. IBLE, PIP qnd Necoumenfation
; abe “Glenda: foo TA nla A fed _Bexslebrend —
es Python Pye! Anof ck Paton
!
| —__Progtaind e.
Pw Pip Stans Pow pyiben Package. Fnbtoller » uf
re _uded to instal] thoy Meclufed
2 CUSTONIZE INSTALLATION
D ip we olont Wart to tudteLf Python the,
olehautt + Path awl We Want +o choode ero
v
Path Hon we Gu ebick Hus option.
DT hdd python to path
uh Ne chick. hid checkbox Then puto n
ON)_add +o Comm aud proombt PMih 46 that
he Gn _jvddal/ Pucthon Hoclulex Rom Command” Keuwortl — 4
8 tae ib A Rebexved Ward Wh
ee QU
had didault he
—Wive Gn wal change or Helis ‘tha. olefow
Fuvetonaliy oh feast
USiwe ude ra © fo at all pythsin
Evder anal Keg werold fo get Hore hol -
folse wlass from or
Nene Continue global | Pash
Tous. of wily aide
avid) imbowt xetusm
ob elif AK ak tee Pil
odbeut edbe ) & okies
[odyne. 1 exebhi Camda ya al
Jawai Ri sane nonlocal yielal
bores. oie v ;——
Comments
—
~ BiGmments ard uded Fon) Improve. Bea
read abjlidy Juivelordtevvolab iu ‘
:
B> Comment iara wot Tadatog ay aR
labtional — in the _Pdogeam: if a
__ 35) Gimentar in: Progam A Same ad:
Gammentay. iw hall game:
V V
__ DlWe Gyewbie Caine boty ilaon Muthple lined .
or aa Line algo.
Ty be. ob Comments
4> ingle — line. Comments
2> Hult’ - Line Comments
an Jingle - Lye Gmmends
ai uh We Wetle 9 Gomment fox at. Apscific La,
Hen Hat Commert 6 Collea divale. Lite
Ce» | Hivgle -
ms Gomment
| “The Program » Like
| = aiaib ete = apie addi .
: \ Commence Can_be Wei Hen above,
W
. e Wr} tte vee algo , Like. below
= a :
TE pexgovming addition befideom A
Vvban bine “thew the,
aame.
Hen of hen. program 2 oe
Bust be Wri
like abou: _
Hult Le Gmmends ee
Suk We Wat fo Gmment det of veda teen
We
we Gu Cmment all pe bined; Hus 14
Called Malle Dinas Gmmenks-
TS We ade. ipl queks fo seit Multi Dine,
Comments:
Ez-
eS
Pooyet Name NIH Deda
SKN 2 Python dyange My SL jU4
Team Size ‘0
Aliant pale 108-02 Fe
Expected Encl bata $93 ~ 08 ~ 2093
my
Nole—
Titenbrelere Lot pot crocute the | Coie_ omments +
devi Want fo -enccuk any part of
S| i Wes
he program thay Binh we Can Commend _
thot pant of poops Fs asta ahaa
oil) nat executy Commanteol Coole 5 anol
Telos We Cam Vn ~ Comment (oo
Tdentipien —
dentin us Wime. Phich i ubed i
Bea a Sp enipre. otyel Like Vani bled 5
“TPunction’ , selabded > ar au 5 eee. fiaee ie
ee iNa Gadt Name = Sai
\ iolewhipien 6 the Combination of upper Codey
TTewen = Gale) Dis and Unalendenored:
_MY_FIRST MANE. = Sal”
Ny Riskt Name = Se"
1
Ny (Cixdt— Name 12 = re
% Toentifier Showd not Stat with Ligits.
Eqe
qd
1. HY FixSt Name = Sai”
yndax Ero + Trveliel olecimal Widen
Vv
4 Tolendipier allows nw binumbess BUnderdeones
ad a pobition ecaeag im the beggining |
Eg te
My Cindt— name — = & Nani"“> Tolewlifien ~Ahould not allows Apeataf
Neharaaaters except Unolerdeored + =
Leh ee
wae : [ay & fixdt Name, = Tap oan
Syntax
Snvaliol Syndr
Error!
ty firedt Name Broa
“ND Tdentifier Should not allevo Space:
Sundar Error? tnvabial Eyntan
a Identifier. howl hot bea python or
ae
pass
my Tae 5
anGat's loeval 1 ~x
2 yntat | Pepsre:s invalid 3 ickaxx Mavable ih w_aederved memosy location
i : q
IN
Rhich tw uded fo Stoxe flo vder olaty
Dh sewe Se Het Value to wa
_Naxiable. then infeapvefer ull Linh aw
— Wevable tale memosy and allocate Bom <
N
Space Re Vaneble,.
y IWadable 7 iio bobs cmeount ome) (14
ubed +o fave our se J esoperty
! NV
Accound —> Bepodit Ft iol theleains not Sin ba
Waniable —> Gave + get dala —>itn frawo ae
fees — Naniable _
Functions ! ‘ at A 4
fe Bes ty _Patvt O
a4 elisplay ea
AIS HyPeU ie
: Tt didplay the 4yPe of date
q ©. l
Zi) Tas!
| Beb a the addsedd oh saab
a ; a " 3
rd
; [Fa = loo {000
Patek (a) Fo ula d Bent gS
| tbe. (a) :
{ica i VFS PDS
| b = loo
| paint Co) f [o-10
pee)
SU96FNIZS)
| Dilker ent Ways fo ahi Veiliwk fo Variable.
cS _ Diff ¢
DB Aiqnivg Ove ValuiS “Fo one Vartoble
GN
name. = MK @
alasy = [0000
u
Company = Tesh
V
age = ZO eg W)
D or imulWiple Valudel fo ‘mubliple Vaxjable
at Wi dame Hme, .
Eq
TY
al
name, Salary , Gmpbany 4 = MK, tou (Tes!
7 jy ne :a
ce ec aes a ag
a |
Ne |
tare (ad)
Z clash HapleS.
Aibigsitg ora he
jak we Some. dime
ae
t
pace = wpe =F pate = hyd?
pind (6 pee) ning?
¥
Bink CA Place) : hyd
nhs wthyd
Pee |
lower - Cade ———S nvroy ra teh har
| ie 2RP p ci pahe » peur tty > oe Oe
upper. — Cade US NakAyaA THEA| Posoal - Cade — > Navrag ie Tech : Ho.
| Come ~Coge harayng Tech Houde,
Vv
"Broke Gwen es naraynor — feeh — house
Kebob — Cohe —> varatna — keh — houde
q
Notes | ‘
Pathe seloes vrot Support kebab — Cade
qrotes
=F
pee aw uded fy rite TSE String
Yous
» ati ‘A ve Gltetion oh wharacterd:
emcloded by quo es
U
* Tapes op pons —
d Single. qpiold
ty | Double qunks
S i) Triple yuo les _© [ingle ~ [oouble. quotes ort
. Alvgle. Live ce
ee
ty _ oe yr
J fe name. = Nasayone
date =) Thy 14 Nena
daca 2” python ie Zable eal. avo)
ae
(@) Friple quotes ane bed FO, Wei te,
!
|Mubtible. Live. obing Nolue -
Eq = a,
d Paldarh Ae 203 ard Plow,
NageSad » {
ASter prime Hodpitel Lane,
Ameenbel
H clrnabod et
~ pad Cocdelneds)
AF 303, Srel Plooo y
H Naga Sal Nivahy
| Ailey prime Hedi jal Lens, ;
ee to takeee ise a
ae oe ee
a Sei ge ee
ea Fis) je ee
ke ie
pain c=) . Heklo le Nargyara 217 ne a8
Nels
3 Sometime We patel ios whe bolt Birgle.
ed Fowles quekaleia i le —BiaFicoh 5 Like.
+ ¢ J fis
Port (Thee tend pylhow Flyin crecaA"
fhe pees fyiheuls J Flying ars
Sadat Pes repredent gheliube. of lad thot
1 Givi ng. +o Variables
®liw
in Othe Lavsuaigel erie cecics.
the t
site oh, Vascoble Bear useoy?givin the Value to Vavable.
a vids = ae a oleate 4 6
em ait Vartab)e. :
“4 = 1605, He dex 1d giving Hee Vea
sa iy baded’ ow the
ae Variables
Pre ‘ybe. of ae babeal On et a
ae
Uper Saluo oh suntme - "
IES rath pl
| acon Fue eat ‘He aa
‘plo Nantebled ig
fybe (ays 9H sienbe Uren Voleaidas a
fh h
ae % a
a
Poe eet
phe
=
ar Dobie. Delergbed
een apy
@ liPleatsiyy wit wahed> © plelowiny > hx
‘ | _©. Boo|
@® Combe
® Shing
“@ Advanen Retelybet VA Bala Struhinah /Seqyurress)
ae me Collect ond
Oi Sbing
® bist
® Tuple
@) Sef
“6 bret
Olek Esbigies =
Qe Dade 2 : =p = N
4s ubers 1A) i Fale Mohion) to 2g
Varable than ind en-predersd ' dleafoled > Ahd.= Tybeg
ef Neuable ak wt oloto ighe
E
ee gee nA hoy. Se Cd age
ee tekala | xeldne
|_Fabe. Ca) > Lelhsd — TFS
GQ Paak Saabs aes
— Fs wer\/ us giv Rod vWaluas qo og
__Wexfeblies’” ald wh erpreder || rds 7
Koei bo Hass apeEsse Se8
Hype GO > roast e
ol
eae
“eet ete shell ee
ee t vad | bevh dabyposa host
= Rae eae
Pi eS
cL type eles 3 bea
~@ Grfter so Beiyped -
a uy ben if et Valu Same
ile rs Lie
pe |
ope rs =Totala ee Si, a iin aatiadatciaeaciee lM mR ISTE ad
a tipe. O53) Mei eladd *, Complex
& G Shivg code, Taped
sh uber 1s giving Foie Valuo to
__Naxiable. Hep \vderpreden aleavals His type
ls Variable, ak Sig alate Jypes
Gg
es
vx = Spy dion’ f£ 2 oy
+4 pe =O8 eee ao
0 UN
©
Powmat only :
ot
Hy ay a \ tud
jnfout (erie. A numb en Je
ber WY Manbassd, sot adcS =a impel O) is malig all Rh, ld 4
c th Sting ‘ype only Bey olipull
() Prowse Some. == Bend a fo the
:
‘dada type GEL) Belov bead {us
Vv
do Ta va deli tion beidean te
* ie a poe Ody hy murbedd ) ad u
[a ae nec eae Minkse 7)
ee see umber 2/0
a “input (“Eider Secouvsl cami y
=p satw a
“Enter Biola rulmber “26 ;
pSHere, The ache) oe
Greate vation,
6 oulanivg Tea ee -
. ¢ 7
[both Vaniabled 16 etry Bo at ey pepng
2 Sok Ss
oe ed Jo20
2. dwwid c ’
_x Ais peas udieg + ferdee balaun
dis Shia 16 -Collad — Concadenalian
“doaeS oem
x
The. ( procelts sept udiay aap ehetfor) toe teseen
tim umber 1 Call: Aclali don JOS =
python dock not Bippeol aie . opera fos
*
bedien One Shi and One number
becond e python 1A SFsneytabed Petaguale
ery
re tyve. Prrbeh
We ube Age: Convedion pamehen > to) Conventbee Tape @) ¥ ae Piet
| , iste oH
ha dalehfe. of Hes
madteisbel: “Cowvertionb
OTe pecalg panthtln e we
Op ives) Jyor Convedtiny owl
Ofek O_ oye a
_@) bol OF] jr Cre ony boo] he Nahas
E © _Crblex 6 She Convert cou Gels abe
Nalued
QD] St aaa fox. ee dicks Ate vale
7 Sus
Enter gowrnopeuesndages! 9D dj
faird 2 jo
HaNaBet Crpub(Enlin youn Pencandage i”)
f
yee ey ee . ok. cc _divibon ePerata-
ES Hedulas operate a
7 > Floor Sivibion Pera tor
1
3 : | * ¥ > Exponent operat
NeEy -
a 4d a= g
: bie Si x
a+b ue eA
_la= b . es)
ceva So
oa a/b 2:0
Ey Att 2=
ss o/s 1:8
a oS ae
gi /3 2+ 33335
1/3 a
atb ° i
1335 B
Bx Q 3
Gian 8)
SS 12S
(2 Aiipernk efor
= > Abbi nimi Equed opens tor
+ = D> Adolifon onl Adsipnrmend Eyucel operator
ES >Substrachon uel ARSi yn yn nd Eqpeal op erator
xa sy Hu Lip cation anal AdSianme nf Equal Operator
: [7 = > dividreon avo AdArynmend Equak op ena too
[+s = > Moclwhus “anal Adsiyamend Fyuad apenator—V2 Flooe Divibven and A
Be ee
_ > Expo. ent at “andl | AAA gin mont E
4 sg a
“ope
Bc ie
° A> =10 aes #4 = fea
paint (a) —
aie 20
OO oe
point) ee
a= 100
Oye aS
2 cel
point (a) 4-0 =
dea
Cee en ee eee
css nba ce
a a a ; 3 20
eee :
ayes 3 anf lala a
paint @ ) ce 3a
[ox re a
| pant @)
i Conboution
[= = > Gmbanuibion Eguuaeh openator
TES: SS Nor Each operate a La
fe a > Lessthen OF Equal apera tox
ZL > Lebdthen aperafoor +
= E enato;
Sos > graster then or Eos) ap a
> > gualaton operator
F
Eda
| aio
bes
: a==b Paks e Sask Joes =Bigh alder
1 == 10 Torun lo>1l Falée_
__ | Bae True Wet Eanes
lgiee ib Palée. Li Se UL eet
eas Falde.
[
| a NOC SSD husGD Logical operas _—
O! Logical ust
(logical 2%
GS Letpical anol10=10~ eer
bea 20 rs
4 oS Slo) True
: WHA ES Pelbe.
a Terug
Potse
E Phe Teue
[pA earth, Polbe
! £ e
1 a
OF adiborS Tee
Ot hota as Palbe_
and a Tour, uf, the number js vot |
e MG ga ue Crxoup
a > Pabe 5 sh the vumber id Waible im
7 Sho Croup +
Be ,
Fnames =] Sais Nout’, Sadyar Naroyena
bn is
Narayano” in rowed Toue
[Reban? in named
fests Ra( 6)I
Phew .
hot im nome
ae
S in homed
af - i
toe IM hamed
elifiel both a
a clifford | bkrewude py thon ee
Derbi tive. LN
ide vetity aberatoxs
|___ N
Note ide vhgren i
Tawd (NP
Gse =
4, Snot DS aw iol Ee ee =these
eperah=S abel to Compara Ha dak tgp.
B®
ae 12)
: tube, es iA int Foug
lube @) 6 float Polb«
__ | tee @) é& bool Folse
z ibe (a) bs aie Lelbe
es (2)
be 18 9
e (by) we Sie
i Om Float amg
| tbe (Ei Ea) fed —
id Complex Balbo
: abe ®I tyke Co) or 2 Palbene ot
i oe
iio te
——________._
ye © ME
___lybe © Ss
Agbe CSS hot if
taPe Cas)
. (4) Bitte opersp xs
Bitiwidse on =
‘ Bite qvol aS
Bi tobe Kon
>
lBitao id ;
| fetes ght Sees
ae eT ee"Bit ibe
‘ani
ox fable
ee Pal ay
| I }
i O Oo
° 1 e®
a © 0
(8) Bitwibe Yor fable,
x me
| i oO 24
) oO 1
0 i /
O oO Oo
& a OR Wi
. forage. SLi bX heRE 2 oe OR
(ete Oc oe
__ (5) befas
| Cu eee Ne)
66 D>] Ooo Oo ©
[43 Su6 nei Col
66J43> | gee es, Chua
64UF 3248424) = JOFz
[Biowe ANS Frample.
1
\O8? £50
ote 7
AO ray,— Bifoibe Leth
@ 59 443
Por i2S + Gus ler SS
2) j|282< i=
}ga Bo? (G2 156199 6Y 32 168
TOO o
0
: 1 1p 0 emer G05.
os
Pp
aeile 2b eee
; | | > oi
- Se
| C So res oo
~
Te stusr?
. Tes
Cy 120 >S yy Uy
\
Se SE ET
‘ea! 0 7S
° t
2!
O°MCOEData Structuras
Tpaka Shouctoud (Ss bike a Gutainor Loku'eh,
vol tha Same
Th aded fo Stove, the lot
alate 1S uded Laka’ to perfo
(Ege Nemoyp Gurls Bank Account, Pen pave,
operety ond ae ae
| Humon Brainy Water Bottel. -- -
_Techaw'cally 5 thee, are ol gfe types of Sot
Stoucdurd>
a Shing dake Stoucdure
\ LSE Sake Structure
> Tuple decly Structure
@ at Dake Sheuctir
S) | pie? Ieee eS aetine
Nok. - the bedt example of Dake Sloueturea,
6 Bark Acaount Whrewe have To clepody
(16
&)}
[Ear ) me and Witholeow) (Getticy JinaFoy baba 25 Ee
Od Oh
< 9D a Lede
sta PEN ores
parent] eat ZT AAaK
Og We Glbchion sh charac tow
es g
-~felloted ey unis
(each chanasstow Ws dt open wit index
yar-ber
a) 24 Eubpet both fonviovdivandl backLivdex _ _Wunbes
3] froowerel iS also Called poditive iuvslex var en
-S) |backweed A albe Collec Negadive Swlex ywamber
’ A
Seg Supports be th | dled vol Set
4p Pinang. Neand ss begs charac. |
2 by udiegy 44 swolex wank
REN a) | Aliaiag, Head pe Setup charscprng
ba adivg. there Stert qual eve] tuolex numbe,
<3 S fois. alla. huplicat chonwrbe rd
© oveler, af Chonac tor bixeol iu tho
Stina
>| Shivg “Subpests both avel Concadifion and
g
vvpealatton
: i Ae :
2 Siva Suppeots both pa 4 vol aes
L3Nl Sig ib immwbeble_ ohyect
J
wy J bing Gy be Cracked‘oO ee ee alouple que ls
@ ee ud ge piple. goles
(s)
Nor
——
[sek See
, ebivg le uo eA, "hod
ba Sing ¥
[pend (Se er Fike sensi
bt De“ Natagano ecb aii ea
UV
er Be python Zz eo = r
int (Ste :
print [8 e Athen is Sm[ole bay 3®
|S ar Inole xh
het 16 pee prowess of felch. Apecipre_ |
ee bluse As inol ex __wamb en 2
“charac too
Ow afte te to Tudesl “either Pleat om
Complex os Abies tube Jake ab inolex
Wwnben Ahan ivleepoeke Will alan, Abe: Eom
Sd the wiley number, RAS Nee Lal
awa. than imtenpwater Ill oelusn the
Swing Value
Vv
Ou the inex number 1A oak ff
sang
Hen Wwheapreter will veturn lnelex Porta:%
14 eA
Eg
at
S41 [2]
oF
. ty Jhon Nan ava ne” oo
= F te
| eres
Tg SSS
_ ees) = e
ES
3+ Ee] sf ee
Sige ae
EE ow
See ey
I
Lot [os ]
Index Fsxoe ES bing judex out
=n
[oe [vs if ae frvor : at indices mud
[St mae
pe £rrev. 5 Inoliced mudt