I have a quick question, is there a way to have python combine a range of characters, combine them, then put them into a text file?

What I mean is, if I have the characters, "a", "b", "3", "F", "@", etc, is there a way to combine them in various ways to make, "abF", "F@b", "3F@ab", etc and then print them each on a separate line of a text file?

so far, what I've got is this:

```
lst = ("ab@F3")
list1 = list()
for ch in lst:
    list1.append(ch)
    print(list1)

```

I would like it to be able to output something like, "abF3" AND "3Fab" AND "Fb3a"

Any suggestions?