-
-
Save nfx/67ca426c8dcf6da82ce95c18f00fdb66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = [1,2,3] | |
if len(x) < 3: | |
return x | |
else: | |
return [4,5,6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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