#what is the difference between infile and outfile

4 messages · Page 1 of 1 (latest)

merry forge
#

my professor didnt really explain when to use each one

dull laurel
#

As someone who's been using Python for 17 years I have no idea what you're talking about. This seems like you have two variables... We need more context

merry forge
dull laurel
#

Yeah those are just variables. They're using those names just to distinguish between a file that you're reading (infile) and a file that you're writing (outfile). The variable names can be anything.