What is the use of Fflush () function to clear the write buffers to write the contents of the buffer into the associated file to delete the file to delete the contents of a file?


fflush() Function

fflush() function is used to flush a file or buffer. It cleans it (making it empty) if it has been loaded with any other data already.

Single Asterisk in Python

Here the single asterisk (*) is used in *args. It is used to pass a variable number of arguments to a function, mostly for passing a non-key argument and variable-length argument list.

end and sep in Python

end and sep are optional parameters in Python. The end parameter is printed after all the output objects present in one output statement have been returned, while the sep parameter differentiates between the objects.

Lascia un commento