Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0ced62

Browse files
Answer
1 parent 34e6724 commit e0ced62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎String's/Text Wrap.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import textwrap
2-
32
def wrap(string, max_width):
43
return(textwrap.fill(string,max_width))
54

65
if __name__ == '__main__':
76
string, max_width = input(), int(input())
87
result = wrap(string, max_width)
9-
print(result)
8+
print(result)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /