⇨ MENU ⇨ METHODES ⇨ bytearray ( )
bytearray ( ).islower ( )
⇨ MENU ⇨ METHODES ⇨ bytearray ( )
bytearray ( ).islower ( )
DESCRIPTION.
Teste si au moins l'un des éléments (octets) d'un tableau d'octets est une minuscule et qu'il n'y a aucune majuscule.
SYNTAXE.
Booleen = tableau.islower ( )
Booleen = ⇨ variable qui recevra la valeur [ optionnel ]
tableau ⇨ tableau d'octets [ OBLIGATOIRE ]
.islower ( ) ⇨ appel de la méthode [ OBLIGATOIRE ]
REMARQUES.
tableau doit être un objet de type bytearray ( ) valide.
La méthode bytearray ( ).islower ( ) retourne True si tableau n'est pas vide (tableau != b"") et qu'aucun de ses octets ne sont dans b"ABCDEFGHIJKLMNOPQRSTUVWXYZ". Sinon False est retourné.
EXEMPLES.
print ( bytearray ( b"Python" ).islower ( ) ) retourne False
print ( bytearray ( b"python" ).islower ( ) ) retourne True
print ( bytearray ( b"python 3" ).islower ( ) ) retourne True
print ( bytearray ( b"(python)" ).islower ( ) ) retourne True
print ( bytearray ( "python" , "utf-8" ).isalpha ( ) ) retourne True
print ( bytearray ( "mon python à moi" , "utf-8" ).isalpha ( ) ) retourne False
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de
Dans la LOGITHEQUE de MON PYTHON PAS A PAS
vous trouvez des suggestions de projets simples et classiques pour
ooo
TESTER - DÉCOUVRIR - PRATIQUER - APPROFONDIR - EXPLORER
ooo
la programmation récréative avec le langage PYTHON 3
avec un exemple de résolution à télécharger pour vous inspirer.