(Oct-24-2019, 08:46 AM)mcgrim Wrote: I changed line 16 and got this error.why would you change it?
(Oct-24-2019, 08:46 AM)mcgrim Wrote: which line are you referring to?As i said - line 17, in CLIENT code. Currently it reads:
if data[:6] == 'EXISTS':
(Oct-24-2019, 08:46 AM)mcgrim Wrote: Also, what do you mean by PEP8 ?
https://www.python.org/dev/peps/pep-0008...mendations
PEP8 Wrote:Use ''.startswith() and ''.endswith() instead of string slicing to check for prefixes or suffixes.
startswith() and endswith() are cleaner and less error prone:
Yes: if foo.startswith('bar'): No: if foo[:3] == 'bar':
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs