2 answers

.isalpha() only returns True if all the characters in the string they are alphabetic and there is at least one character, otherwise returns False .

If the check also has to accept blanks, you can use something like this:

if all(x.isalpha() or x.isspace() for x in equipo):

This expression will be True for strings that contain spaces and alphabetic characters. However, if you need to also accept numeric characters (for example Shalke 04 ), you must modify the expression to allow them: