On Tue, Dec 14, 2021 at 12:05 AM Larry Warner <lcwarne...@gmail.com> wrote: > > Win 10, Chrome, Python 3.10.1 > New at python > error on open statement > > Probably simple error but I do not see it. > > The program is a python example with the file name being changed. I want > to experiment with changing the literal file name in the open statement to > a variable name later. >
Use forward slashes "/" instead of backslashes "\". ChrisA -- https://mail.python.org/mailman/listinfo/python-list