Don't add comments where they are not suppoed to be. For e.g. -
for i in range(x): # This is a for loop
Make your comment mean something, and be consise. For e.g. -
plt.show(p) # When used, it will show the window on your desktop
The example above is wordy. Instead it should be -
plt.show(p) # Display Window
If you have hundreds of lines of commented code, then it is helpful to remove those lines of code as they have no effect on the end result of the program. If somebody would like to see the code you used in your previous release, then they can see by viewing a backup.
Too many arguments can lead to make your program stink. Don't make your functions have too many functions in them.
If a function is not being used in your program, then you should delete it. Similar to commented out code, clearing that up can help you debug code.
Try to make the names of your variables and functions actually tell what its job is to do.
print('Thanks for Reading!')