IDEAL ENGLISH SCHOOL- RAK
Vision -To achieve academic excellence through an inclusive education and to develop our students into versatile, competent, lifelong
learners & responsible global citizens.
Computer science
GRADE: 8
LESSON-1
PYTHON
Learning Objective:
To learn to write a simple program in Python.
To learn to use variables in Phython
Answer the following:
1. What are the features of Python?
Ans.
Easy to learn
Python has few keywords, simple-structure and clear syntax.
Readable
Python code blocks are identified by indentation. This make program
highly readable and easy to maintain.
Standard Library
Python library is portable and cross-platform compatible with UNIX, Windows,
Macintosh
Interactive mode
Python supports interactive mode which allows interactive testing and
debugging of code.
Portable
Python can run on a variety of hardware platforms and has same interface on all
platforms
Database Support
Python provides interface to all major commercial databases.
[Link] will you print your name in Python?
Ans. >>>Print(“Name”)
3. Python is said to be portable .Why?
Ans. Python can run on a variety of hardware platforms and has same interface
on all platforms
4. What are the rules for naming variables in Python?
Ans.
Must start with a letter or underscore(_).
May consists of letters, numbers and underscores.
Variable names are Case Sensitive.
EX. __password, num.
5. Name any five reserved keywords in Python
Ans. Print, del, elif, return, for.
6. What is variables?
Ans. Variable is a place to store information such as numbers, texts, lists of
numbers and text .
7. How to save Python File?
Ans.
1. Open IDLE and choose File=>New File.
2. An empty window will appear, with Untitled in menu bar
3. Enter the following code in to the new window:
print(“Hello world”)
4. Now choose File=>Save. When prompted for a filename enter [Link] and save
the file to desktop.
5. Then choose Run=>Run Module.