0% found this document useful (0 votes)
28 views

Python Assignment

Python assignment important questions.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Python Assignment

Python assignment important questions.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

___ :1 .

:: How
I

:.lo t~fu:on .
.iJ)ontll --- - - __ _ __
____ ~; ¼\-_cµtir,9 _ (J.n(j ~~,n,g _ -f:i"boo_ on_ lNlndQU-U Of~~ ;~ rr _

_ _ _ ,; 4 "~ -
~ r<l.f---"'\e'----"--. The. ~rvJaJJo.:Lon- fjt,() ~ invo l.YU cY.vJ
; lliN-t /2~\ : -- -
""-....___ _ _ __ _ _ __ _ _ _ _ __
Ii

i .1 1
D~ d :ibe b\n<»t.l'-M 1

~- 1 Run i±be i;'ll.-eu.u<Lb\e io~Jallen _j


3 . !· Add ftJ""on :lo PA1H U)\Ji"-Ormw~aJ vo.11ia.bt~.
I
It

11
: o
,,:. ,~~utlo..bte ,oo·toJJw
I

1, . ·~r · bred- ·)io ··:ni11, inM· iM ctll~.>1

' • I' I I ' I ,


' • .J
.,

•· n u...u.b i

_ _, cliu. "n ~t J..o.lt-\t f~\-hon


- - ~___D0- ~ b.oow .
~ ;;---======== = ======= ===~

,;
I
AJJ .Jcdea.&es Down,/oad
,_ \
fi.o~ :

.," w, n oo w s .
r
I
' &wu~ c.ede I I I ,.
'. .• I -, ' I , I ' I t
,I -4
',
I

'I
I

wfnJnwp I '
:(,~:i~~n a-~•:·•J. '· . (

ii •'
I
' -
rr)(J.(,0_$ '
-
~

'' No-J;e -le.at pj-khon . 3. q + cannot.- be w,t.d


·i OM~ Pla-l~o.f>frn~ I , l I ' • l ; °" , I •
-
' LU 'i'nd OCJJS :P., , 0~
. e,QJ.t
, / reM
1-..Pcen.se .• .~.:.. . 1., ··.·. ~ 1 _r_ F_ t i • t
ti (. I
-
i
:
A~ncilt.v(!
.__ . -· ~
"':)ot:. +eie o~ ~ou ~e . ~k:>n.3 io'f_? Pyti,01 ,
. f- , \ ' ! k I J \. : : '
l
I :1 i ~:J.. '.. • . ' 1 -.
1 1
. ' '
, . \
e,ari be w.ec, on man~ opeMot.,~ sljs. ·o..m o.r;,d
! ~ rri p le.menUAi'bn er,v:~Ol"lMtnf. ..,rew Au.U. 0~ -H-ie dot,t,,nload

f I I
I !
I I

,I
: I_ I • -

' \
- C
'· r !' : oJ. l '. ; ; · J!'
C
.t ~ '
f.
., ;, J
- j --. /'.J ,. · 1 , ) ,· ; '. ! ' { I
.. .
I
- I d -. J

ii ·5 .; ~ ~ ,, ~ "l ;:-\he,;,,.,. tx.e:~ a.ble~--: ·- 1' -_. I •• ( • • '

I f• ii t • . ! . . r ._
..._, ·I
I

. r ~ il,~O"te. . ,. ~e.. ! ~ -~\-a.U~l


.
•• , I
f ,< 'I

. , -fi-do i
:lo tht

' . , ..
-~ ' J .L.L J I •
I !!;, Python 3.11.1 (64 -bit) Setu p

Install Python 3.11 .1 (64-bit)


Select Install Now to install Python with default settings, or choose
Customize to enable or disable features.

~ Install Now
C:\U"1s\adm1n\AppData\Local\Prog1ams\Python\Python ll l

lnclud.-; IDLE. pip and documentation


' ..
Crut._ ~hortcuh and fol e as~ott,tions
( ' .. .
➔ Cu~rum1t e in~1alla1io11
C. hut1•.r l tH•lu.ih • ull fit.a lur r,

python
lt>t I_,., Uw 1d1111n 111 1v,l11c1••• whl•t1 uc&l• ll•no l'Y•"'"

---- - -- -~-~=--=--:-~
--
. dOWS
WIn
-~-~=-- ~- -~~~~~-:_- :_~-=
- _J
Pl Add pythun ... u• lu l'AII I I CJnc-rl
\;lt Python 3.11 .1 (f>.1 -uit) Setup --
, t Optional Features
0 Qocumentation
,, .
·I Installs the Python documentation files.

, ' • 4
011ip
Installs pip, which can download and install other Python packages.
\ I 0 td/tk and IDLE
Installs tkinter and the IDLE development environment.
0 Python !est suite
Installs the standard library test suite.
0 py launcher 0 for 211 users (requires admin privileges)
Installs the global 'py' launcher to make it easier to start Python.

pyth9n
for
winnow"

0 tiOJl,\
~\-o.ll Ad,d P ~on ~ t.nv bumrn.1.1tt
o.n ./2ilid- ~e
I /JM.ou
0"101

I
;o/2 \-ollo..Hon d:nedo
1 ,

1 : ...l.f)

vonce.d

• 1be. .Lu\- ( opi' o~) ~ kf ,in c:.&,e 1nAhtlktiion pcrot t1-~ ..i~ _fu_
Pt1\:bon f?o..t'n ~ :the., ~Hrn :±n"1'rrooh'\ti1tv'OJl: ~
_ _ _1'h
.·.:. .:. ·_,~-
. .:;. ~~ J..b done j.o a.tttM f':11:hon 4h,.-o~ _-fue ~
,_ - - - -~ - _ .}; ~ • W~ - ~ - c,_d_d_~_d_ _ p¾i~ Q- _jo _ _t,f\'1t?_w f'ln'lu-J -~~
_ _ _VJ.JruJ~-- ~Uti~ ~e Aovo..n te.d op~of\i~ d~ #) ~
•---- .. ,m\o.llo.1.i.on. P""°ledv,,e Jll 4-he Jo.\1- h kp . 1
f we ~
7
-#ie OJti u ''
I siHin '' 'In \I

,; ~ t
·; u,undl,u,
-,

•,n ~ k -r n App tnd efhe


. \ootalla)-ioo
PATH

,i
., ,
i;i, P; thon 3.11.1 (6-!-b,t) Setu
p

Ad va nc es O tions
Install Python 3.11 for .i!.11
Associate files with Pyt hon
u~er~ · -· ·
(req uire s the 'py' launche
r)

d application s
Cre ate shortarts for inst alle
men t variables
Add Python to ~nv iron
ary
£recompile stan dar d libr I I
• L. •
bol s
Download debugging s-m
r)
(req uire s VS 2017 or late
Download debug binaries I · ' t ~. t •
I '

I. Cus tom ize iristali lo-cation it ,·


.'
l .::::::=====------i~-------_J ._-=--___.
~--11!!11!!!!'!-;;a
f:\P yth on Browse
python
for
Back

--·.:;-- ·- - - - - - - - - - -
I I
-

• T
I j
Setup was su cc es sf ul
h the onl ine tutorial and
New to Python? Start wit ch Pyt hon
term ina l • type "py· t o Iaun
documentation. At you r ·
you r Sta rt men u.
or search for Python in

using
, or find more info abo ut
See what's new in this rele ase
Pyt hon on Windows. ' I
' I

~- - -- - - - - - -
python
- -- - - - - - '°'
- - --.- - - - . .
- _,I
(10:1,•

-
- ------ I
- -- -• -
'
__ _,__ .L. . ' '

, -- - I I I
-- -- -
~ , -. .,/
-===-===-==-__:--==-.., - ---- - --- .
--- - --- -----
-- --------- . -

.
----
• t.ve. .~ Q'() ~.\ l ' r"]

c:#ie ', rnta..u a.J,'on


~~O\ -th"" t..omrn Jln'- ~

4-~ cro :.th


,
~e. \ \--oJlo.:¼l'o n &o.nt.h "f -\h(! r
I otha,r
().{'\ on
\'
. Wt ~ ./2tt ~ 3- H . J ~

~oJJJd.
-licrosoft i·:ir,dous (version 10. e.1904;, 2364 j
(c) ''ic~os,:,f, Corporation. All righ'i:S reser•:ed.

: \Uses\ad~:r.>python
ythor. 3. 11.1 {~ags/1!3.l1.1:a7a4;ef, Dec 6 20::2, 19:58:39) (MSC •:.1?:," 6'1 b:: : ::,~64j] on 1-,irr32
,ype "help", "copyright", "credits" or "license" for more inforrna:ion.

i lDLEShe113.11.1 - D X
- - - - - - + + - - - - - - - J File Edit Shell Debug Options Window Help
~hon 3.11.l (tags/v3.ll . l:a7a450f, Dec 6 2022, 19 : 58 : 39) [MSC v.1934 64 bit ( "
AHD64)) on winJ2
Type "help", "copyright", •credit3" or "license()" for more info:cmation.
( ., »> I •

I .. l' , l _ _ _ _ _ ! L - - - - - - - - - - - - - - - - - - - - - - 1
• , ::: . ,
y

, i ln:3 Cot0 f------''-------


- - - - - - + + - - - ~ ' - " - - ' - -.;.--I

• An a.JJ-e>1f\ ~ tht.t\(. \-hon ~t~on ~


'
3v
1h,trui(h
~
the. ~\-a.,,~ lnellO di
-tn \DL ~- \ H, 4- - b, t . we. t.o.n Sl-o.JJ~ c.d i r)
\t) Lf: -roltd Dwdo rntn f- oJ)c/

\ DU:: ~ 0.0 ~"'~e~ ,-ate,d d we.,topmt.nf trivirn,n~ (roE) ..fu~


.-P\\%orl ' 1he. fj~Ot) \ru\-o..Uut 11~ uu" da.u.-tA t.On rCl.V',f ~ l

lt>L£. coodult ~ ~~------- - - -

N)o de. ~,1')9 ¾ H'\on

• .. 3f0" ~ '' P':1\-hon'' in i~P ~ ~,o,i ~

. tDLt (p ~ o f\ 3· \\ G4 - bll
iti o.1:1d ~
.p,u·o+ ' _L.I~
f1Ys1 uµ-01
'')_ _a.rd
{ '' Htlt~o_ pn.tM
: !A)e. ~}-

eu1k,i
~ 0-t
.:to ------
--
4h'- ~ ul- "T~ ~e'_:_~~-'-l. :~
--0h~ w ,, bl..low I•

,I ~f..f. ,the. ~; ' ' ~~ cU


I ~ IDLE Shell 3.11.1 - □ X I'
~

" ,i. ~ I I I

--
•I
' File Edit Options Window Help
Shell Debug '• ,
1
.,
l ,I' I ; I r I
Python 3.11.l (tags/v3.ll.l:a7a 450f, Dec 6 20
,. , . ~
I .,.
22 , 19:58:39) [MSC v.1934 64 bit (AMD6'4) J on w -
- I
I
l .
I • ◄ ~ r
I in32 ;-
I
~
.. • I I Type •help•, "copyright•, "credits" or "licens
• I

, ;
I
-
I e O" for more information.
>>> lf-1
I
'' - .. -
. ,. ~ ,_.
I

2 I

>>> print ("Hello")


I Hello
>>>
i
Ln:7 Col:O·
lY
(
--

.a. I Sc. il¢ rn~e .

~ f>kp 1. .• Ope.o tht. Pjf-hon tDE- Qf"\d ope...n ~~ .sunft=


~,e •,n P~tnon \l)E
'
~'"9 4he optn
•.
Of?HOO <3 jvcn
4/1 1 '1 . I
.. I
\ (

~ IDLEShell3.11 .1 □ X I

I I
' >, , _

• I f /
Fi!_e Edit Shell
Newfile
Debug
Ctrl+N
Options Window Help
.ll.l:a7a450f, Dec 6 2022
.
"' I f - - - - -. - - - : . _,,,
__ _ _ _ _ _ __

• 4 • i
Open...
Open Module...
Ctrl+ 0
Alt+M
64 bit (AMD64)] on win32 '
"credits" or "license() I
,
~
.
• I •

Recent Files
Module Browser Alt+C
► ( .
Path Browse,

• I Save Ctrl+S . ..
Save As_ Ctrt+Shift+S
Save Copy As... Alt+Shift+S

Ptinf Wuldow

Close Window
b dlDl.£
Cttl+P

Alt+ F4
Ctrl+Q
1---·-·_,_·_,~___;_________
-
"
-----
-
~ ·N~i~ ~.o.:; ,__;w=--+-,~~· ~
-:!2=™3 ..;;....
o pFuu
:::...:_.....;;, gr-
·"--:-1 ·· ~ _ -~ \t -~ Mr IJJ.JU

_ _
_..}h ' o_f"'\______
~ _\ _ _o...,.p_~_
e __"-Mf ,r1_ _ ~ _ f'("")tl \.U , b~ _ l'::'l f I Pun

t Ut ~ on ~ (Y)oduJ.e (o "') _ uu r a.n rc,


:,I

-+~~·It__ •Ir"
~ 'o_u_""'-·-~- - ~-b. .o. .......b_\u,d-
__ _..___,,,__
;:ln , _~ f'_
_.,.o/U.,l _._ •
4 bL...Jt...__ t ~_pt_•-
J?'--
·-·--'JC
. .' •
f~~'()f' ~ • I I "
1
I I I I I '

u\ First.py - C:\Users\admin\First.py (3.11 .1) □ X

File Edit Format Run Options Window Help


1 " '-
_ _ _ _ _ _ _...;._ '. .----iP iint{" This is my first pytho n progr am")
A I • . ''

, . f , • I
I I
I

r..
I I •
Lnd Col:40
'"
--- --- --- --1 ~"" First.py - C:\Users\admin\First.py (3.11.1) □ X
Help •
p:rint: ( "This is R1Jn Mcd1Jle F3 >I
I • ~

, ' ( I Run_ Cust_omized -Shift+F5


Ched Module Alt+X • I I
\I
Python Shell
Ln: 1 Co~40 , .. Q
'L
• j "' l 1' ,
., tr , ..,- ~-~
' '

• j ' ..
·ca..ri
I". •
,o .~th on 1:DLE 1~ and , ~ ouJ-pu-t
i

pt
. , , f
d. I • .. ,·, I , ~ , .

t • I
! :•
D X
I
~ 1 IDLE5hell3.11.1 11 I • •
- - - -- - - -I £ile fdit Shell Qebug Qptions Window tlelp
- --
.. Pyt:bo o 3 . 11.1 (t:ags /v3 . ll.l:a7 a450 f , Dec
19:58 :39) [MSC v.193 4 64 bit: (AHD6 4)) on
6 2022,
wio32
"i _ _:__ _ _ __ _ __ .____

j
•licen ., e ()
Type •help •, •copy x:igbt :•, •cx:ed it:s• or
• for more infoa natio o.

.. >>>
=--== RESTART : C:\Us ers\ad mio\F irst:.p y =-=--
Th u i s my tir:s t: pyt:bo n progra m

l n:il ('1>&0

-
4. , 1),~~ t ~ . · ~u-weq\ 1nh'1 OJJ-;v~ ~ gc.-npt [!)o<YJ i-
,
, P""9"'am ±-x.'-4.LHoo
,I \ , IL . / I I I ''

a.

Ob\-o.ine.d on

• 'int010.d,

/2hoT-r
a. di ' c..cde
done in rncde
.. M~ \- modt; e,nli"re
' "led
.·~ · · . 'M\-- ~ - t.orf-\.. Ol)j

I • l"

• and • Code. co.n bf

• • T+ ...u
~ \J~ r\~.,,\_

---- .lo "4e f'<'1o d e •

----

You might also like