Skip to content

Update testlines.py #86

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

Merged
merged 1 commit into from
Nov 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions testlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# Description : This very simple script open a file and prints out 100 lines of whatever is set for the line variableest you want to print\n" # This sets the variable for the text that you want to print


def write_to_file(filename,txt):
with open(filename,'w') as file_object:
def write_to_file(filename, txt):
with open(filename, 'w') as file_object:
s = file_object.write(txt)


if __name__ == '__main__':
write_to_file('test.txt', 'i am beven')
write_to_file('test.txt', 'I am beven')