mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 20:38:06 +02:00
revised example code
This commit is contained in:
parent
8e50e12f10
commit
cd8cdc61f7
1 changed files with 2 additions and 2 deletions
4
README.md
vendored
4
README.md
vendored
|
@ -388,11 +388,11 @@ array = [2, 8, 22]
|
|||
|
||||
```py
|
||||
iter1 = [1,2,3,4]
|
||||
g1 = (x for x in x)
|
||||
g1 = (x for x in iter1)
|
||||
iter1 = [1,2,3,4,5]
|
||||
|
||||
iter2 = [1,2,3,4]
|
||||
g2 = (x for x in x)
|
||||
g2 = (x for x in iter2)
|
||||
iter2[:] = [1,2,3,4,5]
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue