3.3 notes, 3.2 questions, and 613 test file
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
class MyClass:\
|
||||
def __getitem__(self, index):\
|
||||
return f"Item at index \{index\}"\
|
||||
\
|
||||
\
|
||||
x = MyClass()\
|
||||
item = x[3]\
|
||||
print(item) # Output: Item at index 3\
|
||||
|
||||
Reference in New Issue
Block a user