What is the difference between a variable and a constant?
In maths and computing, a variable is a symbol, number ore letters that represent a value.Python variables are like this:
name = “Bob the builder”
A variable is something that needs to change though out the program.
A constant is something that needs to stay the same and can't change. In the c programming language a constant looks like this:
int const a = 1;
Click here to read more about it.
No comments:
Post a Comment