Skip to content

Commit df8baf9

Browse files
authored
Merge pull request satwikkansal#157 from saveriomiroddi/sav-correct_typos
Correct some typos
2 parents b8e4cd1 + e35642e commit df8baf9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ SyntaxError: invalid syntax
198198
>>> a
199199
6
200200
201-
>>> a, b = 6, 9 # Typcial unpacking
201+
>>> a, b = 6, 9 # Typical unpacking
202202
>>> a, b
203203
(6, 9)
204204
>>> (a, b = 16, 19) # Oops
@@ -666,7 +666,7 @@ for i, some_dict[i] in enumerate(some_string):
666666
1\.
667667
```py
668668
array = [1, 8, 15]
669-
# A typical generator expresion
669+
# A typical generator expression
670670
gen = (x for x in array if array.count(x) > 0)
671671
array = [2, 8, 22]
672672
```
@@ -3070,7 +3070,7 @@ _A__variable = "Some value"
30703070
30713071
class A(object):
30723072
def some_func(self):
3073-
return __variable # not initiatlized anywhere yet
3073+
return __variable # not initialized anywhere yet
30743074
```
30753075
30763076
**Output:**
@@ -3263,7 +3263,7 @@ def convert_list_to_string(l, iters):
32633263
**Output:**
32643264
32653265
```py
3266-
# Executed in ipython shell using %timeit for better readablity of results.
3266+
# Executed in ipython shell using %timeit for better readability of results.
32673267
# You can also use the timeit module in normal python shell/scriptm=, example usage below
32683268
# timeit.timeit('add_string_with_plus(10000)', number=1000, globals=globals())
32693269
@@ -3387,7 +3387,7 @@ Let's increase the number of iterations by a factor of 10.
33873387
46
33883388
```
33893389
3390-
**💡 Explanation:** The `@` operator was added in Python 3.5 keeping sthe cientific community in mind. Any object can overload `__matmul__` magic method to define behavior for this operator.
3390+
**💡 Explanation:** The `@` operator was added in Python 3.5 keeping the scientific community in mind. Any object can overload `__matmul__` magic method to define behavior for this operator.
33913391
33923392
* From Python 3.8 onwards you can use a typical f-string syntax like `f'{some_var=}` for quick debugging. Example,
33933393
```py
@@ -3443,7 +3443,7 @@ Let's increase the number of iterations by a factor of 10.
34433443
34443444
* `int('١٢٣٤٥٦٧٨٩')` returns `123456789` in Python 3. In Python, Decimal characters include digit characters, and all characters that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Here's an [interesting story](http://chris.improbable.org/2014/8/25/adventures-in-unicode-digits/) related to this behavior of Python.
34453445
3446-
* You can seperate numeric literals with underscores (for better readablity) from Python 3 onwards.
3446+
* You can separate numeric literals with underscores (for better readability) from Python 3 onwards.
34473447
34483448
```py
34493449
>>> six_million = 6_000_000

0 commit comments

Comments
 (0)