Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def append_txt(filename, var):
- my_str = _____ # convert var to string
- with open(filename,'a') as f:
- f.write(my_str + 'n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement