Page 237 - Robotics and AI class 10
P. 237
6. num#1 = 100
if (num == 100):
print (Number is: num
print ("Thanks!")
Ans. Correct code is:
num = 100
if (num == 100):
print ("Number is:", num)
print ("Thanks!")
7. 5=a
b=int(input(Enter value for b))
if a<b
print('a is bigger")
Else:
print("b is bigger"
Ans. Correct code is:
a=5
b=int(input("Enter value for b"))
if a<b:
print("a is bigger")
else:
print("b is bigger")
D. State whether these statements are true or false.
1. Slicing a list means accessing a specific portion of a list. ……….……
2. Operands on either side of the + operator have to be a list. ……….……
3. We cannot create an empty list. ……….……
4. A list can be created within another list. ……….……
5. All libraries including NumPy and Pandas can be installed only when Python is already
installed on that system. ……….……
6. Pandas libraries are not built on NumPy. ……….……
7. NumPy is the first step in learning to become a Python data scientist in the future. ……….……
8. An array having two dimensions is called a Vector. ……….……
9. List occupies more memory space and can be accessed directly in Python without any
package support. ……….……
E. Match the columns:
1. Mean a. most frequent value in a given dataset.
2. Mode b. measure of dispersion of a set of data from its mean
3. SciPy c. means how far each number in the given dataset is from the mean value.
4. NumPy d. average of numeric data in a given dataset.
5. Variance e. free, open source Python library used for scientific and technical Computation.
6 Standard Deviation f. uses mathematical and logical operations for handling large datasets
Introduction to Data and Programming with Python 235

