@Akshay0404 Put line 19 after the for loop not inside it If your doubt is resolved please mark it as closed.