Closed mbhall88 closed 4 years ago
Create a generic function that takes a string s and an integer i and wraps s to maximum line length of i.
s
i
I will create this in utilities.py
utilities.py
This is not required actually. There is a package in the standard library called textwrap that does this.
textwrap
import textwrap textwrap.fill("ACGTACGTACA", 5) # 'ACGTA\nCGTAC\nA'
Create a generic function that takes a string
s
and an integeri
and wrapss
to maximum line length ofi
.