This is a fairly common question in the python community. Since the release of PEP 8 in Python, new formatting styles have been adopted. One of them says that after defining a class or function, there should be two lines separating them. As such:
def yadayada: print("two lines between the functions") def secondyadayada: print("this is the proper formatting")
So you should never do it like this:
def yadayada: print("two lines between the functions") def secondyadayada: print("this is the proper formatting")
Or PyCharm will give you this error.
source share