In Python, the __________ function is used to enter data inside a list [array].

A. copy
B. insert
C. get
D. add
E. append
Expert-verified answer
0 (0 оценки)
gauravsingh23VT 6 months ago
Светило науки - 1098 ответа - 0 помощи

In Python, the insert function is used to enter data inside a list. The + operator returns a new array containing the elements from both arrays. append(): appends the element to the array's end. insert()

Can input an array into a function Python?

Any sort of data, such as a text, list, array, dictionary, or dictionary, can be supplied as an argument to a function in Python.

When one pass numeric arrays as arguments to Python methods or functions, they are passed by reference.

Thus, option B is correct.

For more details about Python, click here


Still have questions?