Skip to content

Commit

Permalink
add read file instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-bat authored Feb 26, 2020
1 parent a263d55 commit e2f515e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _lab/lab07.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Starter code is provided for you at the bottom of this page.

Here are simple examples you should try:

## How to read file in Python?
```
file = open("filename")
content = file.read()
file.close()
```

**input1.txt**
```
hello
Expand Down

0 comments on commit e2f515e

Please sign in to comment.