threading start(wait for the thread to complete join(print('\ndone'now the 'donemessage should not be printed out until after the worker thread has finished as shown belowstarting done the threading module functions there are set of threading module functions which support working with threadsthese functions includethreading active_count(return the number of thread objects currently alive the returned count is equal to the length of the list returned by enumerate(threading current_thread(return the current thread objectcorresponding to the caller' thread of control if the caller' thread of control was not created through the threading modulea dummy thread object with limited functionality is returned threading get_ident(return the 'thread identifierof the current thread this is nonzero integer thread identifiers may be recycled when thread exits and another thread is created threading enumerate()return list of all thread objects currently alive the list includes daemon threadsdummy thread objects created by current_thread(and the main thread it excludes terminated threads and threads that have not yet been started threading main_thread()return the main thread object passing arguments to thread many functions expect to be given set of parameter values when they are runthese arguments still need to be passed to the function when they are run via separate thread these parameters can be passed to the function to be executed via the args parameterfor example