Skip to content

Commit ba8295c

Browse files
authored
Update python.md
1 parent f492659 commit ba8295c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

python.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,11 @@ s1 ^ s2 # Symmetric difference
102102

103103
```py
104104
for i in range(4): # 0 to 3
105-
for
106-
i in range(4, 8): # 4 to 7
107-
for i in range(1, 9, 2): # 1, 3, 5, 7 from 1 to 9-1 step by 2
108-
for
109-
item in lst: # List
110-
for key, value in d.items(): # Dict
111-
for
112-
i, value in enumerate(lst): # With index
105+
for i in range(4, 8): # 4 to 7
106+
for i in range(1, 9, 2): # 1, 3, 5, 7 from 1 to 8 step by 2
107+
for item in lst:
108+
for key, value in dict.items():
109+
for index, value in enumerate(lst):
113110
```
114111

115112
### [String Manipulation](https://docs.python.org/2/library/stdtypes.html#string-methods)

0 commit comments

Comments
 (0)