Page 108 - 2403_Trackpad_V5.1_C6_Fb
P. 108
c. a, b = 10, 20
c = a + a + b + a + b
print("a is:"a,"b is:"b,"c is:"c)
d. name1 = "Nakul"
name2 = "nakul"
print(name1 + num2)
2. Find the output of the following codes:
a. a = 5
b = 6
c = 7
s = (a + b + c) / 2
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is', area)
b. p = 500
t = 8
r = 10
si = (p * t * r)/100
print('The Simple Interest is', si)
c. a = 15
b = 41
c = (a+b)/4
print(c)
d. a = 8
b = 5
c = 3
d = 2
print(a+b-c/d)
CAREER HERE
People who are experts in Python may pursue their careers as Software Developers.
FOR THE TEACHER
1. Demonstrate the Python programming modes to the students.
2. Discuss with students about the Python and its features.
106 Premium Edition-VI

