Naming variables and methods

Use meaningful and self-documenting names for your variables and methods. The name should leave no scope for confusion about the intent of the variable or the method. Use plural names for collections and singular names otherwise. Methods that return Boolean values should be appended with words such as is or has. Stick to the style guidelines, but you should also know when to break them.

Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.