Ex15 Study drill 6 problem


#1

On exercise 15 for learn Python the hard way, for study drill 6 when I use “open(ex15_sample.txt)”
I get a NameError telling me ex15_sample is not defined. Why’s that?


#2

@jonay please show us your whole code and format it like so:

[code]
your code here
[/code]


#3

Take a look at how I do it. I put quotes around the ex15_sample.txt to make it into a string.