List
Tuple
Dictionary
None
>=
<=
=
!=
arr[-2]
arr[2]
arr[-1]
arr[1]
space
colon
semi colon
End of File
End of Line
End of Statement
End of program
index()
find()
Both of the above
None of the above
open_file()
file_open()
open()
read_file()
close_file()
file_close()
close()
end_file()
Read mode
Write mode
Append mode
Binary mode
read()
readline()
readlines()
load()
write()
append()
add()
insert()
file_exists()
exists_file()
os.path.exists()
check_file()
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
os
fileutils
filesystem
io
A machine learning library
A web development framework
A numerical computing library in Python
A data visualization tool
Array
Matrix
import numpy
import np
from math import numpy
import numPy as np
It creates a new Python list.
It creates a NumPy array.
It performs element-wise addition.
It calculates the mean of an array.
Only integers
Only floating-point numbers
Homogeneous, but can be integers or floating-point numbers
Heterogeneous, supporting a mix of data types
arr1 + arr2
add(arr1, arr2)
arr1.add(arr2)
elementwise_add(arr1, arr2)