Super Cool Python Trick! #shorts

preview_player
Показать описание
Did you know this function existed?
#codeMyster #python #programming #coding #vscode #pythonprogramming
Рекомендации по теме
Комментарии
Автор

Sorry For The Audio 😔 Did the trick help you? Like + sub!

codeMyster
Автор

Just some more info: The method isalnum is short for is alphanumeric, and returns True if all characters in the string are alphanumeric and there's at least one character.

How it checks: A character c is alphanumeric if one of the following returns True: c.isalpha(), c.isdecimal(), c.isdigit(), or c.isnumeric(). So if one of these returns True for each character in a string, s.isalnum() will return True for a string s.

Nagim-dz