# NCERT Solution Chapter 3 Brief Overview of Python Class 11 IP

Share with others

## NCERT Solution Chapter 3 Brief Overview of Python

```SUMMARY : Brief Overview of Python

Python is an open-source, high level, interpreter based language that can be used for a multitude of
scientific and non-scientific computing purposes.

Comments are non-executable statements in a program.

An identifier is a user defined name given to a variable or a constant in a program.

Process of identifying and removing errors from a computer program is called debugging.

Trying to use a variable that has not been assigned a value gives an error.

There are several data types in Python — integer, Boolean, float, complex, string, list, tuple, sets,
None and dictionary.

Operators are constructs that manipulate the value of operands. Operators may be unary or binary.

An expression is a combination of values, variables, and operators.

Python has input() function for taking user input.

Python has print() function to output data to a standard output device.

The if statement is used for decision making.

Looping allows sections of code to be executed repeatedly under some condition.

for statement can be used to iterate over a range of values or a sequence.

The statements within the body of for loop are executed till the range of values is exhausted.

```

## Q2. Write the corresponding Python assignment statements:

a) Assign 10 to variable length and 20 to variable breadth.

b) Assign the average of values of variables length and breadth to a variable sum.

c) Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to a variable stationery.

d) Assign the strings ‘Mohandas’, ‘Karamchand’, and ‘Gandhi’ to variables first, middle and last.

e) Assign the concatenated value of string variables first, middle and last to variable fullname. Make sure to incorporate blank spaces appropriately between different parts of names.

## p) print(5 % 10 + 10 < 50 and 29 <= 29)

```Show AnswerAns.

b) 9

d) 59049

g) 55

h) 1.0

j) 27.2

l) 10.0

n) 10.0

o) True

p) True

Statement e) will show error as here variable c is not defined ```

## Then Simple Interest (SI) = (P x R x T)/ 100.Amount payable = Principal + SI.P, R and T are given as input to the program

```Show AnswerAns.

P=float(input("Enter Principal"))
R= float(input("Enter Rate of interest"))
T= float(input("Enter Time"))
SI = (P * R * T)/100
A = P + SI
print("Amount to be paid is", A) ```

## Q11. Find the output of the following program segments:

```a)

for i in range(20,30,2):
print(i) ```

```b)

country = 'INDIA'
for i in country:
print (i) ```

```c)

i = 0; sum = 0
while i < 9:
if i % 4 == 0:
sum = sum + i
i = i + 2
print (sum)```

## NCERT Solution Chapter 3

Disclaimer : I tried to give you the correct NCERT Solution Chapter 3 , but if you feel that there is/are mistakes in the NCERT Solution Chapter 3 given above, you can directly contact me at csiplearninghub@gmail.com.

## NCERT Solution Chapter 3

Class 12 Computer Science Sample Paper 2020-2021.

Class 12 Computer Science Sample Paper Marking Scheme

Class 12 Computer Science Test Series

Share with others
error: Content is protected !!
{"ft_lang_label":"__label__en","ft_lang_prob":0.75297636,"math_prob":0.8862681,"size":4327,"snap":"2023-40-2023-50","text_gpt3_token_len":1168,"char_repetition_ratio":0.12722646,"word_repetition_ratio":0.0077220076,"special_character_ratio":0.27524844,"punctuation_ratio":0.106852494,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98389393,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-03T04:27:59Z\",\"WARC-Record-ID\":\"<urn:uuid:120cfe5b-b9af-4642-bae8-9d7b21cbecb7>\",\"Content-Length\":\"317733\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2d841d95-6971-43f7-a6c0-8404f0cfeece>\",\"WARC-Concurrent-To\":\"<urn:uuid:5e959f0a-f134-4366-9ce8-f11320f07edf>\",\"WARC-IP-Address\":\"151.106.117.50\",\"WARC-Target-URI\":\"https://csiplearninghub.com/ncert-solution-chapter-3-class-11-ip/\",\"WARC-Payload-Digest\":\"sha1:6CD76N6TGJKJKEZ2GUCR62YSBXLNRXKR\",\"WARC-Block-Digest\":\"sha1:DZ27G2A2X2SEGULSM3NLRMINUEC2YMAB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511053.67_warc_CC-MAIN-20231003024646-20231003054646-00639.warc.gz\"}"}