[Python] How to remove Empty Rows from a list in Python 3.5

Discussão em 'Python' iniciado por Stack, Janeiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    apple
    mango
    banana

    tea

    coffee


    Can someone please suggest a python code to remove the empty rows in this case after banana/tea/coffee so the actual result should be as below without any empty rows in between and after the end of lists

    apple
    mango
    banana
    tea
    coffee

    Continue reading...

Compartilhe esta Página