Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Interview

Class 11 Python Chapter 5

Rating
-
Sold
-
Pages
1
Uploaded on
15-12-2021
Written in
2021/2022

These has all the solution for Class 11 Chapter 5 Textbook This is the link for the textbook: Note* I don't own the textbook The textbook is owned by NCERT

Institution
Course

Content preview

Chapter 5 Solutions to all excercises


Excercise - 1
1 (i) A dot cannot be in a variable name

1 (iii) There is a special sign of dollar

1 (iv) There cannot be a space character in a variable name

1 (vi) '-' cannot be in a variable name

1 (viii) 'True' is a reserved word in Python so it cannot be usd as a variable name

In [3]:
# Excercise - 2

# Excercise 2(a)
length = 10
breadth = 20

# Excercise 2(b)

sum = (length + breadth) / 2

# Excercise 2(c)

stationary = ['Paper' , 'Gel Pen' , 'Eraser']

# Excercise 2(d)

first = "Mohandas"
middle = "Karamchand"
last = "Gandhi"

# Excercise 2(e)

full_name = first + " " + middle + " " + last
print(full_name)

Mohandas Karamchand Gandhi


Excercise - 3
(a) The sum of 20 and –10 is less than 12. (b) num3 is not more than 24. (c) 6.75 is between the values of intege
Stationery is empty.

Answers

(a) 20 + (-10) < 12 (b) num3 <= 24 (c) (6.75 > num1) and (6.75 < num2) (d) (middle > first) and (middle < last) (e)


Excercise - 4
Q. Add a pair of parentheses to each expression so that it evaluates to True. (a) 0 == 1 == 2 (b) 2 + 3 == 4 + 5 ==

Answer:-

(a) 0 == (1 == 2) (b) (2 + (3 == 4) + 5) == 7 (c) (1 < -1) == (3 > 4)

Written for

Institution
Secondary school
Course
School year
5

Document information

Uploaded on
December 15, 2021
Number of pages
1
Written in
2021/2022
Type
INTERVIEW
Company
Unknown
Person
Unknown

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
adithyavedula

Get to know the seller

Seller avatar
adithyavedula
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions