Reading between the lines alternative


#1


Reading between the lines (alternative solution)
I got stuck with the "missing" text.txt file, so i added 2 lines to create that file


with open("text.txt", "w") as textfile:
	textfile.write("Success!")


my_file =  open( "text.txt", "r" )
print my_file.readline()
print my_file.readline()
print my_file.readline()
my_file.close()


#2

This is cool @eek63. Thumbs up!

Doing it with code is awesome than manually. :slight_smile:


#3

bayoishola20 http://discuss.codecademy.com/users/bayoishola20
July 19

This is cool @eek63 http://discuss.codecademy.com/users/eek63. Thumbs
up!

Doing it with code is awesome than manually. :slight_smile:

Visit Topic


or reply to this email to respond.

To unsubscribe from these emails, click here
http://discuss.codecademy.com/email/unsubscribe/434f2e6338fdefb2bc76be6139a9bad542681d3d550f795efa57a78998b84d5f
.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.