Answer and Explanation:
Recursion is a technique to solve a problem where a function in a program calls itself at specified times.
The three situations when recursion is the single option available to solve a problem are:
- When a task is required to repeat itself without the use of loop.
- When we want to take a print of the result of the functions used in the program which calls itself in the order which is reversed. This makes use of stack.
- Where the solutions are provided such that it follows the order in solving from the inner most to the outer extreme level of the tasks. As in case of recursion in deleting the files and the directories, files are deleted followed by directories.
Answer:
mudar o horário de acordo com a vista
Explanation:
Answer:
//To install the python’s numpy module on you system use following command
pip install numpy
//To use numpy module, need to import it i.e.
/*Python’s Numpy module provides a function numpy.array() to create a Numpy Array from an another array like object in python like list or tuple etc or any nested sequence like list of list */
- numpy.array (object, dtype =None, copy=True, order='K', subok=False, nadmin = 0 )
//To create a Numpy Array from list just pass the list object to numpy.array()
- npArray = np.array([1,2,3,4,5,6,7,8,9])
- print('Contents of the ndArray : ')
- print(npArray)