Skip to content
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

Use context-manager to open and read file #53

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

khoivan88
Copy link
Contributor

  1. Use context-manager to open and read file.
  2. Add break for breaking out of the loop while reading a file to no wasting computer resources.

1. Use context-manager to open and read file.
2. Add `break` for breaking out of the loop while reading a file to no wasting computer resources.
Copy link
Member

@janash janash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armcdona and I will discuss switching to using the with statement, and I will comment again on this PR. We do not wish to include break in this material.

Thank you for the tutorial link for f-string printing.

_episodes/03-multiple_files.md Show resolved Hide resolved
_episodes/03-multiple_files.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants