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 290 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

0
0
json
1 year ago 2023-03-14 16:30:31 layth
0
0
JSON Path to Structure.
1 year ago 2023-05-09 19:12:44 mrkozma