Prompt Title: Prompt GPT to reliably generate text and JSON data in a precise format using Python assertions, f‑strings, and variables

Created 1 year ago
Votes 0
Views 12 times
0

Prompt Detail:

assert result["Dua Lipa"]["biography"] == get_bio(name="Dua Lipa") assert result["Lady Gaga"]["biography"] == get_bio(name="Lady Gaga") for name in result: assert set(result[name].keys()) == {"biography", "genres"} assert.json.dumps(result,indent=2)=="""\
avatar
Chat Prompt
Shared 1346 prompts
Created 1 year ago

Leave a Comment

Related Tag Prompts

427
0
Sample from Midjourney 307
1 year ago 2023-04-06 04:31:06 Julio Larue