Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

fixed the param 'index' is redundant #36

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 14-it-generator/sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, text):
def __getitem__(self, index):
return self.words[index] # <2>

def __len__(self, index): # <3>
def __len__(self): # <3>
return len(self.words)

def __repr__(self):
Expand Down