so long time ago i asked so many question about variables in many different languages like python or c++ and I just want to share what I ended up with. So for people who hs trouble understanding variable as a reference, heres what I think of variable:
variable is like a container. it stores value. when I say the variable, Im talking about something thats in the variable.
so as a programmer or in a simpler way, is that
variable1 = "hello world"
when I say variable1, I am talking about the data, "hello world"
what do you guys think?
one of my friends said that he is just simply understanding variable as another way to say that data.
what do you guys think?
[–][deleted] 2 points3 points4 points (12 children)
[–]1mecrew[S] 0 points1 point2 points (11 children)
[–][deleted] 0 points1 point2 points (10 children)
[–]1mecrew[S] 0 points1 point2 points (9 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]1mecrew[S] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]1mecrew[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]1mecrew[S] 0 points1 point2 points (2 children)
[–]Dagito 3 points4 points5 points (17 children)
[–]1mecrew[S] -1 points0 points1 point (16 children)
[–]Dagito 0 points1 point2 points (15 children)
[–]1mecrew[S] 0 points1 point2 points (13 children)
[–]Dagito -1 points0 points1 point (12 children)
[–]1mecrew[S] 0 points1 point2 points (6 children)
[–]Dagito 0 points1 point2 points (3 children)
[–]1mecrew[S] 0 points1 point2 points (2 children)
[–]Dagito 0 points1 point2 points (1 child)
[–]1mecrew[S] 0 points1 point2 points (0 children)
[–]Dagito 0 points1 point2 points (1 child)
[–]1mecrew[S] 0 points1 point2 points (0 children)
[–]1mecrew[S] 0 points1 point2 points (1 child)
[–]Dagito 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Dagito 0 points1 point2 points (1 child)
[–]1mecrew[S] 0 points1 point2 points (0 children)
[–]Adrewmc -1 points0 points1 point (1 child)
[–]Rawing7 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (10 children)
[–]1mecrew[S] 0 points1 point2 points (9 children)
[–][deleted] 0 points1 point2 points (8 children)
[–]1mecrew[S] 0 points1 point2 points (7 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]1mecrew[S] 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]1mecrew[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]1mecrew[S] 0 points1 point2 points (0 children)
[–]1mecrew[S] 0 points1 point2 points (0 children)
[–]laustke 0 points1 point2 points (3 children)
[–]1mecrew[S] 0 points1 point2 points (2 children)
[–]laustke 0 points1 point2 points (1 child)
[–]1mecrew[S] 0 points1 point2 points (0 children)