Re: can you improve this text-only beginner copy program?
[email protected] (Stefan Ram) 27 Aug 2025 15:12:24 GMT
| Newsgroups | comp.lang.python |
|---|---|
| Organization | Stefan Ram |
| Message-ID | <[email protected]> |
Ethan Carter <[email protected]> wrote or quoted: >Can you think of anything I'm missing? The correctness of a program as a solution to an assignment depends on the exact wording of the assignment, so it's a bit difficult to say without seeing it. > """Copies text file named S to text file named D.""" This is not entirely clear, since case is significant in Python ("S" is not the same as "s"), and it is ambiguous whether it refers to a file actually named "S" or to a file whose name is provided as a str object bound to the name "s" in the function's source code.