I was trying to find a way to get the number of CPU cores somebody has using Python. Almost all the answers I found were either:
multiprocessing.cpu_count()
or
os.cpu_count()
While these options are great for seeing how many threads the computer has, it doesn't tell me how many cores it has.
multiprocessingandoswill almost always report the number of logical cores.psutil.cpu_countgives you the option to choose which value is reported.