How To Check if a string is Empty in Python?
Summary: Use the len(str) method to check whether the string is empty or not. If the len method returns 0 it implies that the string is empty. Otherwise it is not empty. Problem Statement: Given a string how to check if it is empty. Note: An empty string is a string that does not contain … Read more