list to text file python
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%sn" % item)
list to text file python
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%sn" % item)
python write list to text file
a_list = ["abc", "def", "ghi"]
f = open("a_file.txt", "w")
for item in a_list:
f.write(item + "n")
f.close()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us