Skip to content

Commit

Permalink
Update theory.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalsingh08 authored Sep 5, 2021
1 parent 393a788 commit 2622f93
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions experiment/theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ Read | r | open('file_name', 'r')
Write | w | open('file_name', 'w')
Append | a | open('file_name', 'a')

Example :<br>
a = open('file.txt', 'w')<br>
a.write("Hello!, My name is Jake.")<br>
print(a.read())<br>
a.close()<br>
Example :<br><br>
<img src="images/img1.PNG"><br>
Output : Hello!, My name is Jake.<br>

The above example is of creating a file and printing it.

0 comments on commit 2622f93

Please sign in to comment.