FLBB

Printing to Text File

Discussion created by FLBB on Mar 21, 2014
Latest reply on Mar 22, 2014 by filipkral
so, I got my script ready and I am trying to print out to a text file:

when I do a Print animal at the end of the code I get:

CATS
DOGS
APPLES
ORANGES

Then I tried

file = open('file.txt','w')
file.write(animal)

I get just CATS in the text file

Any ideas ?

Outcomes