Skip to content

Commit 90c59bf

Browse files
nnjavivekvashist
andauthored
Fix LinkedIn links #11 #12 (#95)
Minor changes from PR #13 Minor changes from PR #14 Minor fixes from PR #15 Fixes minor typo from PR #17 Minor fixes from PR #18 Fixes from PR #19 Fixes from PR #20 Fixes from PR #21 Fixes from PR #22 Minor updates from PR #23 Fixes from PR #27 Fixes from PR #28 Fixes from PR #29 Fixes from PR #30 Fixed typo. Co-authored-by: Vivek Vashist <[email protected]> Co-authored-by: Vivek Vashist <[email protected]>
1 parent c6e61fd commit 90c59bf

File tree

18 files changed

+29
-21
lines changed

18 files changed

+29
-21
lines changed

website/content/01-introduction/00-who.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ I've been involved in the Python community for approximately 6 years. During tha
1717

1818
#### Stay in touch
1919
- <a href="https://twitter.com/nnja" target="_blank"><i class='fab fa-twitter'></i> @nnja</a>
20-
- <a href="https://linkedin.com/nnja" target="_blank"><i class='fab fa-linkedin'></i> LinkedIn</a>
20+
- <a href="https://www.linkedin.com/in/nnja/" target="_blank"><i class='fab fa-linkedin'></i> LinkedIn</a>
2121
- <a href="https://github.com/nnja/" target="_blank"><i class='fab fa-github'></i> GitHub</a> where you can find the code for this site and my other projects
2222

2323
I occasionally blog on <a href="https://medium.com/@nnja" target="_blank"><i class='fab fa-medium'></i> Medium at @nnja</a>. You can find out more about me on my homepage [nnja.io](https://nnja.io).

website/content/01-introduction/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Watch the accompanying screencast via subscription on [FrontendMasters.com](http
1414

1515
{{< figure src="/images/fem.png" title="Watch the course" link="https://frontendmasters.com/courses/python/">}}
1616

17-
Stay up to date with me on <a href="https://linkedin.com/nnja" target="_blank"><i class='fab fa-linkedin'></i> LinkedIn</a>, or to contact me directly, please send me an email at <a href='ma&#105;lto&#58;&#108;e&#37;61r&#37;&#54;Ep%&#55;&#57;t%68on&#64;nn&#106;&#97;&#46;&#105;o'><i class='fa fa-envelope'></i> lea&#114;npyt&#104;on&#64;nnja&#46;&#105;o</a>.
17+
Stay up to date with me on <a href="https://www.linkedin.com/in/nnja/" target="_blank"><i class='fab fa-linkedin'></i> LinkedIn</a>, or to contact me directly, please send me an email at <a href='ma&#105;lto&#58;&#108;e&#37;61r&#37;&#54;Ep%&#55;&#57;t%68on&#64;nn&#106;&#97;&#46;&#105;o'><i class='fa fa-envelope'></i> lea&#114;npyt&#104;on&#64;nnja&#46;&#105;o</a>.
1818

1919
You can find the content and exercises on the <a href="https://git.io/python3"><i class='fab fa-fw fa-github'></i>Github repo</a>.
2020

website/content/02-introduction-to-python/010-Best-Practices/02-brief-history.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A common misconception that Python is a scripting language. It's used at compani
1919

2020
This part is a bit of a stain on Pythons history. Python 3 was released 2008, and its adoption was slow. First and foremost because it took popular packages a fair amount of time to port over their code.
2121

22-
This debate is now over. Python 2 will reach end-of-life in 2020, meaning that important updates - including security updates - will stop being released. That's why this course focuses on *Python3 only*
22+
This debate is now over. Python 2 will reach end-of-life in 2020, meaning that important updates - including security updates - will stop being released. That's why this course focuses on *Python3 only*.
2323

2424
### Why Python?
2525

@@ -40,7 +40,7 @@ Python has a wide variety of applications such as:
4040
- Django
4141
- Flask
4242
- Scripting
43-
- Dev Ops
43+
- DevOps
4444
Configuration scripts
4545

4646
Python has an incredibly rich fully featured [standard library](https://docs.python.org/3/library/), as well as the [PyPI Package Index](https://pypi.org/) for 3rd party packages, which as of February 2019 contains 167,107 packages.

website/content/02-introduction-to-python/060-functions/10-defining-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,4 @@ Let's try it now.
204204
8
205205
```
206206

207-
The variable `new_number` now contains the result of running our `add_numbers` function with our arguments `3` and `8`.
207+
The variable `new_number` now contains the result of running our `add_numbers` function with our arguments `3` and `5`.

website/content/02-introduction-to-python/080-advanced-datatypes/20-adding-removing-finding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ We can use `my_list.append(item)` to add an additional item to the end of the li
5555

5656
##### `my_list.insert(pos, item)` inserts an item into `my_list` at the given position
5757

58-
Use `my_list.insert(pos, item()` to insert items in an arbitrary position in the list. If the position is 0, we'll insert at the beginning of the list.
58+
Use `my_list.insert(pos, item)` to insert items in an arbitrary position in the list. If the position is 0, we'll insert at the beginning of the list.
5959

6060
```python
6161
>>> names.insert(0, "Rose")

website/content/02-introduction-to-python/080-advanced-datatypes/30-tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You might ask, why tuples when Python already has lists? Tuples are different in
2727
A good use of a `tuple` might be for storing the information for a *row* in a spreadsheet. That data is information only. We don't necessarily care about updating or manipulating that data. We just want a read-only snapshot.
2828

2929

30-
Tuples are an interesting and powerful datatype, and one that's one of the more unique aspects of Python. Most other programming languages have ways of representing lists and dictionaries, but only a small subset contain tuples. Use them to your advantage.
30+
Tuples are an interesting and powerful datatype, and one of the more unique aspects of Python. Most other programming languages have ways of representing lists and dictionaries, but only a small subset contain tuples. Use them to your advantage.
3131

3232
### Examples
3333

website/content/02-introduction-to-python/090-boolean-logic/10-truthiness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Evaluating expression to be `True` or `False` will help us control the flow of o
1212
| type | truthiness | |
1313
|--------------------------------------------- |-------------------------------------------------------------------------------- |--- |
1414
| `int` | `0` is `False`, all other numbers are `True` (including negative) | |
15-
| containers - `list`, `tuple`, `set`, `dict` | empty container evaluates to `False`, container with items evaluates to `True) | |
15+
| containers - `list`, `tuple`, `set`, `dict` | empty container evaluates to `False`, container with items evaluates to `True`) | |
1616
| `None` | `False` | |
1717

1818
We talked about `boolean` types, `True` and `False` earlier. `True` and `False` are keywords in Python, so make sure you don't name your variables the same thing.

website/content/02-introduction-to-python/110-control-statements-looping/05-looping-in-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The color is: Orange
4141

4242
Let's say we wanted to duplicate the code in the example JavaScript above, that prints out the numbers from 0 to 4.
4343

44-
In order to do this, we'll need to use a built-in function called `range()`. The range function in python produces a sequence of integers from an optional and inclusive tart, to a defined and exclusive finish.
44+
In order to do this, we'll need to use a built-in function called `range()`. The range function in python produces a sequence of integers from an optional and inclusive start, to a defined and exclusive finish.
4545

4646

4747
In Python2, this function created a list of each number in that sequence. As you can imagine, it was horribly inefficient for large ranges. In Python3, the `range()` function returns a new optimized data type. It's great for optimization, but it's harder for debugging.
@@ -80,7 +80,7 @@ The number is: 4
8080
You can also pass an a third optional `step` parameter in. Let's say I quickly wanted to print out all the even numbers from 2 to 10. I would call `range(2, 11, 2)`. Remember, 2 is where we're starting, 11 is one higher than where we're ending (10), and 2 is the step, or the amount to jump between numbers.
8181

8282
```python
83-
>>> for num in range(4, 11, 2):
83+
>>> for num in range(2, 11, 2):
8484
... print(f"The number is: {num}")
8585
...
8686
The number is: 2

website/content/02-introduction-to-python/110-control-statements-looping/10-if-else-elif.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ Hello
182182
And vice-versa.
183183

184184
```python
185-
>>> a = True
185+
>>> a = False
186+
>>> if a:
186187
... print("Hello")
187188
... else:
188189
... print("Goodbye")

website/content/02-introduction-to-python/110-control-statements-looping/40-break-continue.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The `break` statement will completely break out of the *current loop*, meaning i
1919

2020

2121
```python
22+
>>> names = ["Rose", "Max", "Nina", "Phillip"]
2223
>>> for name in names:
2324
... print(f"Hello, {name}")
2425
... if name == "Nina":
@@ -119,6 +120,7 @@ Nina in outer loop
119120
You can also use `break` and `continue` in `while` loops. One common scenario is running a loop forever, until a certain condition is met.
120121

121122
```python
123+
>>> count = 0
122124
>>> while True:
123125
... count += 1
124126
... if count == 5:

0 commit comments

Comments
 (0)