Member-only story

Variables

Raheelanjum
3 min readDec 7, 2024

--

A variable is a symbolic name for (or reference to) information. The variable’s name represents what information the variable contains. They are called variables because the represented information can change, but the operations on the variable remain the same. In general, a program should be written with "symbolic" notation, such that a statement is always true symbolically. For example, if I want to know the average of two grades, we can write "average = (grade_1 + grade_2) / 2.0," and the variable average will then contain the average grade regardless of the scores stored in the variables grade_1 and grade_2.

Variables

A variable is a symbolic name for (or reference to) information. The variable's name represents what information the variable contains. They are called variables because the represented information can change, but the operations on the variable remain the same. In general, a program should be written with "symbolic" notation, such that a statement is always true symbolically. For example, if I want to know the average of two grades, we can write "average = (grade_1 + grade_2) / 2.0," and the variable average will then contain the average grade regardless of the scores stored in the variables grade_1 and grade_2.

Variables - Symbolic Nature

--

--

Raheelanjum
Raheelanjum

Written by Raheelanjum

Highly skilled and experienced content writer dedicated to crafting compelling, informative content that resonates with diverse audiences. Expertise spans blog

Responses (7)