• + 1 comment

    @Bigjin

    if my input:

    ". .,.,. ,.,hi... ,.,.,., .,bye ,..,., .,. ,.,.,..,,., ."

    then expected output:

    hi
    bye
    

    right???

    actual output in ur case:

    hi
    
    
    bye
    

    is this something expected or blank elements need not to be allowed entering the list, before printing them?