Wednesday, 12 June 2024

Class 6 - Chapter 7: Introduction to Python

 Chapter 7: Introduction to Python

Brain Developer

A. Fill in the blanks.

1. Guido van Rossum 

2. F5

3. Line-by-line 

4. Keywords

B. State True or False. 

1. True

2. True 

3. False 

4. False

C. Select the correct option. 

1. a. char

2. c. Assignment 

3. b. float

4. b. 1020

D. Competency-based question.

Kritika should use ‘\t’ escape sequence as a separator with the print() function. 

E. Answer the following questions.

1. Three features of Python language are:

It is an easy to learn general-purpose high-level programming language.

It is a platform independent programming language, which means it can be used on any machine and operating system.

Python needs to use only a few lines of code to perform complex tasks.

2. Named storage locations in the computer memory, which are used to store data, are called variables. A variable can store only one data value at a time.

3. Integer contains positive or negative whole numbers (without fraction or decimal). For example, 15, –7, 314, etc. On the other hand, float is a real number with floating point representation. It is specified by a decimal point. For example, 3.14, –48.6, 18.0, etc.

4. The input () function is used to accept the value for a variable from the user. It takes only the string argument.


No comments:

Post a Comment

Class 6 - Worksheet 4 (Chapter 8)

  Wo r ksheet 4 ( Cha pt er 8) After playing this game, answer the following questions: 1. The two applications of computer vision in the ar...