Movatterモバイル変換


[0]ホーム

URL:


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

Commitbb57da9

Browse files
authored
Fix to actually use dedent in example
1 parentaee3c3c commitbb57da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎markdown/10_Manipulating_Strings.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ To keep a nicer flow in your code, you can use the `dedent` function from the `t
5656
from textwrapimport dedent
5757

5858
defmy_function():
59-
print('''
59+
print(dedent('''
6060
Dear Alice,
6161
6262
Eve's cat has been arrested for catnapping, cat burglary, and extortion.
6363
6464
Sincerely,
6565
Bob
66-
''').strip()
66+
''')).strip()
6767
```
6868

6969
This generates the same string than before.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp