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
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 7cd136b

Browse files
authored
fixed the param 'index' is redundant
1 parent a58ecf6 commit 7cd136b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎14-it-generator/sentence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, text):
1717
def __getitem__(self, index):
1818
return self.words[index] # <2>
1919

20-
def __len__(self, index): # <3>
20+
def __len__(self): # <3>
2121
return len(self.words)
2222

2323
def __repr__(self):

0 commit comments

Comments
(0)

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