pathlib change extension

Solutions on MaxInterview for pathlib change extension by the best coders in the world

showing results for - "pathlib change extension"
Kiara
08 Mar 2016
1from pathlib import Path
2
3filename = "mysequence.fasta"
4new_filename = Path(filename).stem + ".aln"