Friday, January 24, 2014

3.1.1 Naming Variables

A variable cannot be a number, but it can be letters or words. Any variable can begin with a _.
A good variable name is any word that is suitable for what ever the project is.
For example if your are making a track recording program, it would be suitable to name the variable lapTime.
While you can name your variable almost everything, you cannot name a variable after a function. E.G : print.


Useful webpage: http://en.wikipedia.org/wiki/Variable_(computer_science)

No comments:

Post a Comment