Skip to content

Instantly share code, notes, and snippets.

@nfx

nfx/input.py Secret

Last active March 12, 2024 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nfx/67ca426c8dcf6da82ce95c18f00fdb66 to your computer and use it in GitHub Desktop.
Save nfx/67ca426c8dcf6da82ce95c18f00fdb66 to your computer and use it in GitHub Desktop.
x = [1,2,3]
if len(x) < 3:
return x
else:
return [4,5,6]
import json
x = [1,2,3]
if len(x) < 3:
print(json.dumps(x))
else:
print(json.dumps([4,5,6]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment