[Solved] How to read words seperated by spaces as a single value
[ad_1] Without seeing actual code, it’s difficult to know exactly what’s gone wrong here. readlines will split a file on a newline delimiter. For complete cross-platform compatibility, open files in the “universal” compatibility mode (PEP-278 https://www.python.org/dev/peps/pep-0278/), which avoids questions about whether your lines end in ‘\n’, ‘\r\n’, or some other variation (depends on whether you’re … Read more