I've been writing Python code for roughly 3-4 months now. I usually write in Atom but recently decided to try out PyCharm after seeing many good things about it. While writing some functions, I noticed I was getting errors and I didn't know why. According to PyCharm, functions should have two newlines after them?
I'd never seen this, or at least never noticed it before. I decided to Google some sample Python code and some pictures showed code with two newlines, but some only had one. Is there a generally accepted way of going about this or is it down to user preference?