Skip to content

Commit 9f38f45

Browse files
committed
Update TRACEBACKS.md
Expanded int to integer
1 parent e310d77 commit 9f38f45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/TRACEBACKS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The [print][print] function can be used for printing the value to the console.
6363
The following is an example of a function that doesn't return the value expected:
6464

6565
```python
66-
# the intent is to only pass an int to this function and get an int back
66+
# the intent is to pass an integer to this function and get an integer back
6767
def halve_and_quadruple(num):
6868
return (num / 2) * 4
6969
```
@@ -72,12 +72,12 @@ When the function is passed `5`, the expected value is `8`, but it it returns `1
7272
To troubleshoot, the calculating is broken up so that the value can be inspected at every step.
7373

7474
```python
75-
# the intent is to only pass an int to this function and get an int back
75+
# the intent is to pass an integer to this function and get an integer back
7676
def halve_and_quadruple(num):
7777
# verify the number in is what is expected
7878
# prints 5
7979
print(num)
80-
# we want the int divided by an int to be an int
80+
# we want the int divided by an integer to be an integer
8181
# but this prints 2.5! We've found our mistake.
8282
print(num / 2)
8383
# this makes sense, since 2.5 x 4 = 10.0

0 commit comments

Comments
 (0)