()
Module : str
Vérifie si une chaîne commence par un préfixe.
📝 Syntaxe
str.startswith(prefix, start=0, end=len(str))💡 Exemples
'Bonjour'.startswith('Bon')→ True
'Python'.startswith('py')→ False
Module : str
Vérifie si une chaîne commence par un préfixe.
str.startswith(prefix, start=0, end=len(str))'Bonjour'.startswith('Bon')→ True
'Python'.startswith('py')→ False
