Computer 6th Chapter
Computer 6th Chapter
d.
t
Which option is used o execu
tea progr am?
O (ii) Python Shell
(i) Check Modu le 0 (iv) Run Modu le
(iii) Both (i) & (ii)
What does IDLE stands for?
e.
(i) Intera ctive Deve lopme n
t L ning Envir onme nt
ear □
(ii) Integrated Deve lopme nt Learning Envir onme nt □
(iii) Integrated Debugging Learning Environment □
(iv) None of these □
2. Fill in the blank s using the word s from the help box.
), string
Interactive Mode, data type, Guido van Rossum, inpu t(
-
, f~P ---- ---
// - - - -- -- - - - -- - - -- I
✓----------------: the Python IDLE Shell? Also write its components .
,, do you op • I '!) \
:~ •lib i tfo ·<' c) M , CeairnaM 1kmf i I
I
/ ~ e? How do you declare a variable in Python?
\
.
Wh"
tis varia
~ -t I 8 f ~ °'- di) -· i
i·------------
7,_
'lJ
~
---- ---- ---- ---- ---- =~=
o run a Python program.
I
~~
~-
n•
----
WriteseP
, Yl ~
.
input() function .____ u.n'_ricl erv
_ _
. k
~~)f mfllen ti. ~d ffJ: Lte-, ~Pu__
w0 IIYI> at tdJ1L ;ft ,1cct ,.,_
0
\
i.
- I-
Application based questions.
. o '"b Experiential learning
a. Aarav has been writing codes in the command prompt. He wants to save and reuse
his'programs-:-- Where should he write his codes instead so that he can easily open,
run and save for further use?
t ivp+ r,"W ~LL I fdf 1o,A rr~-·
i
b. Ayushi finished writing a program in Python and has saved it successfully but now she forget the
option to ex·ecute a program . Teli her which option she should use? ·
FS 1f::e.1 T-~/ tZ 1
What will be the output of /he f~!l~wing expressions?
a. 56*8+13
b. 4917 - 5+15 - 10
C, 34 *98*2*5 -1076\2
d. 74+98+23+76-23-A 5- 90
e. 90/10+25 * 67-22
Visit your compu ter lab and perform the following action s:
► Print following in Python .
(a) Five famous landmarks of your city.
(b) Name of any five countries that you wish to visit.
( c) Your five favourite cars.
GROUP DISCUSSION
Divide the students in the two groups and organise a group discus
modes on python.
s·10
n on diff
~
::t
erent
LxV+ N-D= ?
c. How many times does the digit 4 occur between 500 and 600?
(~J:tmuwa--------
People who are exper t in Python may pursue their caree r as a
Software Developer .
.... FOR TIIE TEACHER ..................................... .................. ......... .......... ....................... ········••"
"'""
: 1. Demonstrate the Python programming modes to the students.
: 2. Discuss with students about the Python and its features.
········ . ............... . ............. . ..... ············