These two scripts explain the advantage of Threads in Python programming.
Threads are used to run multiple modules(function,tasks) at the same time. Multi-threading is not encouraged in Python due to something called Global Interpreter Lock(GIL) read here
Execution time: