0
Can anyone please explain the meaning of variable as in lesson 12.1 in python for beginners
4 Antworten
0
A variable is used to Store information that can be accessed faster
For example
Variables can have any name but a variable is not supposed to start with an Interger
#let's create a variable called num which will store Interger 6
num = 6
print(num)
#outputs 6
#let create a variable called name which will store a string(caleb)
name = "caleb"
print(name)
#outputs caleb
If there is no variable in the code then it will impossible for you to access data
0
A variable is the pillar of computer programming. It is a memory address that has assigned a value (integer, char, floating point, boolean).
int a = 7;
// statements
a = 42;
A variable can be reassigned in the scope of the program.
I think you should take a low-level programming course, like C, and not abstract one, OOP oriented, like Python or Java.
If you struggle to understand, you must learn the basic concepts of computer programming: memory, instructions, code machine, pointers etc.
0
MATOVU CALEB Yeah, sure! With that Python example and its type safe, he will understand the maximum amount.
What is num?! What represents name?! 😉
0
Thanks 😊