[Solved] NameError: global name ‘profiles’ is not definedKiratMarch 15, 2023Solved Just define the profiles variable outside of your if, our after the includes: from multiprocessing import Pool as Pool profiles = {} def to_dict(in_str): solved NameError: global name ‘profiles’ is not defined # nameerror# python# windows