Prompt 18
What's wrong with this code?
=====
!echo 'hello' > tmp.txt
with open('tmp.txt', 'w') as in_file:
for line in in_file:
print(line)
=====
Output:when to use it
Community prompt sourced from the open-source GitHub repo barun-saha/CodePrompt (MIT). A "Prompt 18" 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