Warning 2.9.1.
Beginners sometimes confuse βmeaningful to the human readersβ with βmeaningful to the computerβ. So theyβll wrongly think that because theyβve called some variable
average or pi, it will somehow automagically calculate an average, or automagically associate the variable pi with the value 3.14159. No! The computer doesnβt attach semantic meaning to your variable names.
So youβll find some instructors who deliberately donβt choose meaningful names when they teach beginners β not because they donβt think it is a good habit, but because theyβre trying to reinforce the message that you, the programmer, have to write some program code to calculate the average, or you must write an assignment statement to give a variable the value you want it to have.
