Skip to content

Variables

Jacob Mealey edited this page Nov 20, 2017 · 5 revisions

We have simple rules to naming variables.

  • Never use single letter names (And then comment its purpose)

    x = 10 #Diameter of circle
    

    when it is easier for everyone to just do something like:

    diameter = 10
    
  • If you must use a complex name for your variable you must use camel case with the first letter being lowercase.

    messageInput = input()
    
  • Do not over-verbosely name your variables:

    widthOfCircle = 7
    

    This is so much extra for everybody involved when you could have just said:

    diameter = 7
    
Clone this wiki locally