Skip to content

Commit be0e5c1

Browse files
committed
Added callout to show that variable names are arbitrary, that 'char' is not a special keyword, and that looping through a string has the effect of iterating over its characters, while looping through a list iterates through its members. Thus, it's not a fact of 'char' that selects and iterates over characters.
1 parent 14d2951 commit be0e5c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

01-numpy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,11 @@ the graphs will actually be squeezed together more closely.)
695695
> to make a shortcut like so: `import numpy as np`.
696696
> If you ever see Python code online using a NumPy function with `np`
697697
> (for example, `np.loadtxt(...)`), it's because they've used this shortcut.
698+
>
699+
> You can also import numpy twice by using both `import numpy as np` and
700+
> `import numpy`. When using both, you will be able to call NumPy functions
701+
> using both `numpy` and `np`. This can be especially helpful if you borrow
702+
> someone else's code and they have used a different convention than you have.
698703
699704
> ## Check your understanding {.challenge}
700705
>

0 commit comments

Comments
 (0)