Computer Science, asked by panyamhussen067, 4 months ago

name the python library modules which read to be imported yo invite the following functions a. getcwd() b. close() c. trunc() d. comb()

Answers

Answered by dreamrob
0

Python library contains pre-made functions that provide functionality through various functions. These libraries must be imported first to invoke a function.

a. getcwd()-This function is used to get the current working directory of the program. since this function involves the operating system, therefore it is present in the 'os' library.

b. close()-This function is used to close the opened file since this function also manipulates the directory, therefore it is present in the 'os' library

c. trunc()-This function returns the truncated integer of a number, since this function works with numbers it is listed in the 'math' library.

d. comb()-This function returns the no. of ways of choosing k things out of n items, this function is mostly used for probabilistic problems. Therefore, it is present in the 'math' library.

Similar questions