home/roleplay/prompt-3-2-2

Prompt 3 2

GPTClaudeGemini··848 copies·updated 2026-07-14
prompt-3-2-2.prompt
Given an input list, which contains strings or nested lists of strings. The nesting can go up to any level, which is unknown. Write code to flatten the input list so that the output list contains all the string elements and only the string elements.

Output:

when to use it

Community prompt sourced from the open-source GitHub repo barun-saha/CodePrompt (MIT). A "Prompt 3 2" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

barun-saha/CodePrompt · MIT