Skip to content

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.

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