Is the counter variable an object? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
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