Python String Methods | isalpha() | User Inputs

preview_player
Показать описание
Today we use the isalpha() string method in relation to asking for player inputs. The isallpha() string method returns a true or false boolean answer dependent on whether or not the string only contains letters. If the string or variable only contains letters, then the isalpha() would return the True value. If there are spaces or digits or special characters in the string, then isalpha() would return false.
Рекомендации по теме