I was trying to create a function that only accepts a string with letters and only with one space between words, i was trying to define it without using regex, do you know how i can do it?
def corrigir_doc(doc):
allow = {''}
if allow not in doc or doc.isalpha() is False:
raise ValueError('corrigir_doc: argumento invalido')