Skip to content

Commit a918f39

Browse files
text wrap added
1 parent 9b02870 commit a918f39

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Strings/Text Wrap/Solution.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import textwrap
2+
3+
4+
def wrap(string, max_width):
5+
return textwrap.fill(string, max_width)
6+
7+
8+
if __name__ == '__main__':
9+
string, max_width = input(), int(input())
10+
result = wrap(string, max_width)
11+
print(result)

0 commit comments

Comments
 (0)