Created
December 2, 2020 04:04
-
-
Save almazkun/7c737b516a2a042cb614793826200e60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
vars = ["var", "var1", "var2"] | |
with open("test.txt", "w+") as f: | |
for v in vars: | |
f.write(v + " ") | |
# text.txt | |
var var1 var2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment