[issue43150] Last empty string not removed in a list

2021-02-06 Thread Kumar Makala
Kumar Makala added the comment: Thanks Steven! -- ___ Python tracker <https://bugs.python.org/issue43150> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43150] Last empty string not removed in a list

2021-02-06 Thread Kumar Makala
New submission from Kumar Makala : # Last empty string not removed from the list str_list = ["Emma", "Jon", "", "Kelly","Eric", "", "","KXN",""] for item in str_list: if len(item) == 0: str