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)
write text in list to text file python
all_sents = ['hey there', 'how are you']
with open('file_name.txt', 'w', encoding='utf-8') as f:
f.write('n'.join(all_sents))
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