Python standard library: The str.is* methods

preview_player
Показать описание
Do you want to check to see if a string can be turned into an integer? Contains only whitespace? Or contains only alphanumeric characters? A family of string methods (isalnum, isalpha, isascii, isdecimal, isdigit, isidentifier, islower, isnumeric, isprintable, isspace, istitle, isupper) all handle these.

In this video, I demonstrate each of these methods, including some of the subtle differences between them.

Subscribe to this channel, as I try to go through all of the Python standard library!
Рекомендации по теме
Комментарии
Автор

I want my BMI calculator to output true for numbers with a decimal point on height/mass. What should I use?

fafafades
Автор

so san is 3 in both chinese and japanese :o

WeedMIC