Hi
I am new in python and want to see how this can be done in python (I can do this in R). I have a text file `myfile.txt` with one column and thousands of rows as shown below. I want to convert this to fasta `result.fasta` format as shown below. How can I do this in python?

`myfile.txt`

    ATGTGTGGTTTTCCCCC
    ATTGGCGGGGTTTTTCAGGGG
    ATGGGGGGGCCCCCCCCAAAAAA
    TTGGTGGGGGGGGGGGGAA


`result.fasta`

    
    >1
    ATGTGTGGTTTTCCCCC
    >2
    ATTGGCGGGGTTTTTCAGGGG
    >3
    ATGGGGGGGCCCCCCCCAAAAAA
    >4
    TTGGTGGGGGGGGGGGGAA
    #!/usr/bin/env python
    
    n = 0
    with open('myfile.txt', 'r') as f:
    	for line in f:
            n += 1
    		print('>' + str(n) + '\n' + line.strip())