We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f7a2cf + cf02eaa commit a6841e6Copy full SHA for a6841e6
src/04-asyncio/producer_consumer/prod_sync/sync_program.py
@@ -20,7 +20,7 @@ def generate_data(num: int, data: list):
20
item = idx*idx
21
data.append((item, datetime.datetime.now()))
22
23
- print(colorama.Fore.YELLOW + f" -- generated item {idx}", flush=True)
+ print(colorama.Fore.YELLOW + " -- generated item {}".format(idx), flush=True)
24
time.sleep(random.random() + .5)
25
26
0 commit comments