Skip to content

Commit

Permalink
Update writing to a file.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Diya8 authored Dec 31, 2018
1 parent 1bf4fad commit 5937d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Learn to handle your file/writing to a file.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Authors:** Annu Jolie

**Edits:** Pranav Shridhar
**Edits:** Pranav Shridhar, Diya Maria Deepak

***

Expand Down Expand Up @@ -73,7 +73,7 @@ Here we open a file called *new.txt*. We have a *for loop* that runs over a rang
```python
f= open("new.txt","a")
for i in range(5):
f.write("This is line \n" ,(i+1))
f.write("This is line "+str((i+1))+"\n")
f.close()

```
Expand Down

0 comments on commit 5937d03

Please sign in to comment.