Is the counter variable an object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is the counter variable an object?

why the notation of the point with variable node in the line 19 of this code? https://code.sololearn.com/cm4eSK58TK1Y/?ref=app

1st Sep 2018, 11:52 AM
Álvar Moraza
Álvar Moraza - avatar
3 Answers
0
"node" is just a temporary name you use while iterating
1st Sep 2018, 12:35 PM
hinanawi
hinanawi - avatar
+ 2
Álvar Moraza no, the temporary thing is the name, you're still iterating through the list
1st Sep 2018, 3:41 PM
hinanawi
hinanawi - avatar
0
but, how can it have a list as attribute? if the temporary variable disappear its list also do it.
1st Sep 2018, 1:21 PM
Álvar Moraza
Álvar Moraza - avatar