Skip to content

Commit 298f254

Browse files
committed
Namedtuple
1 parent f96cc4d commit 298f254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ for i, <el> in enumerate(<collection> [, i_start]):
136136
Named Tuple
137137
-----------
138138
```python
139-
>>> Point = collections.namedtuple('Point', ['x', 'y'])
139+
>>> Point = collections.namedtuple('Point', 'x y')
140140
>>> a = Point(1, y=2)
141141
Point(x=1, y=2)
142142
>>> a.x

0 commit comments

Comments
 (0)