Prompt 14 2
Regenerate the following code by fixing all kind of errors:
=====
print('Enter a number:')
x = input()
if x = 10:
print('X is 10')
for i in range(0, x):
print(i)
=====
Output:when to use it
Community prompt sourced from the open-source GitHub repo barun-saha/CodePrompt (MIT). A "Prompt 14 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