[Solved] Counting the Frequency of Letters in a string (Python) [closed]
You could just check the input with if else and raise an Error if needed with a custom message if original_input == “”: raise RuntimeError(“Empty input”) else: # Your code goes there As a side not, input() is enough, no need to add quotes “” Edit: This question was edited, the original question was to … Read more