0

Please guy I need help here

import concurrent.futures import time def time(): print('wake up') time.sleep(1) return 'woke up' a = concurrent.futures.ProcessPoolExecutor() f = a.submit(time) print(f.result())

6th Aug 2022, 12:52 AM
Bean Hong
1 Answer
+ 1
Your function name conflicts with inbuilt package name time.. Use any other name for your function...
6th Aug 2022, 7:36 AM
Jayakrishna 🇼🇳