DEV Community

Discussion on: Multithreading vs Multiprocessing in Python 🐍

Collapse
 
plaintextnerds profile image
Tim Armstrong

You've got a bug in your code for both the threading and processing examples: You're passing "number" as an arg to calc_quad but calc_quad accepts no args. As a result "number" is undefined in the function.