Generate acode problem

what is wrong in the code ?

hi raghav,


There was just simple mistake in if condition and in assigning value in next line.
I have commented both.
Please let me know if there is any other doubt.