Skip to content

[MKC-1703] Fixes for the Micropython course #2035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Now take a look at what happens after each statement. Notice the empty space jus
Anything inside of this indentation will execute if the statement is met, and this is a fundamental principle that is used in every Python program that you write!

Now since we already defined `x` to be `5+5`, the terminal will of course print:
- `"x is larger than 10"`
- `"x is exactly 10"`

## While Loop

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ TIMESTAMP = 2208988800
# Create new socket
client = usocket.socket(usocket.AF_INET, usocket.SOCK_DGRAM)
client.bind(("", 8080))
#client.settimeout(3.0)
client.settimeout(3.0)

# Get addr info via DNS
addr = usocket.getaddrinfo("pool.ntp.org", 123)[0][4]
Expand Down