educative.io

Use of variable value?

Why we need variable value to store value of variable i in line 12 of solution of the code?


Type your question above this line.

Course: https://www.educative.io/collection/10370001/5765097389555712
Lesson: https://www.educative.io/collection/page/10370001/5765097389555712/5651905137082368

Hi @Manan_Jain,

Thank you for pointing this out. This variable might have been used for readability purposes, but it is out of the question to use it since the same task can be handled by the variable i itself.

We’ll update this coding example soon. Happy Learning.

Thanks & regards
Dian Us Suqlain