Skip to content

Commit

Permalink
docs: use "length" over "len" in tutorial3 python (#425)
Browse files Browse the repository at this point in the history
* docs: use "length" over "len" in tutorial3  python
  • Loading branch information
alestiago committed Dec 7, 2023
1 parent 807d178 commit 8bb39a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ The snippets of code included in this section are taken from the `notification h

```python
# Parse first 3 bytes
len = data[0]
length = data[0]
command_id = data[1]
status = data[2]
```
Expand All @@ -273,7 +273,7 @@ status = data[2]
# Parse remaining four bytes
index = 3
params = []
while index <= len:
while index <= length:
param_len = data[index]
index += 1
params.append(data[index : index + param_len])
Expand Down Expand Up @@ -1020,4 +1020,4 @@ There is additional logic required for a complete solution such as checking the
on and storing a dict of response per UUID. At the current time, this endeavor is left for the reader. For a
complete example of this, see the [Open GoPro Python SDK](https://gopro.github.io/OpenGoPro/python_sdk/).
To learn more about queries, go to the next tutorial.
To learn more about queries, go to the next tutorial.

0 comments on commit 8bb39a3

Please sign in to comment.