Segnmentation fault

the above code gives segmentation fault please help me solve this error

Hello @prerna_gupta31

try printing ur list, it seems ur take input function is not working correctly.
it is creating empty list.

I watched the video again… I am unable to spot the problem

@prerna_gupta31
check now->

Thanks a lot… It helped!