Answer
by using the isalnum method of string. For example to check if "7" is an alpha numeric character we can use -
"7".isalnum()
if this returns true then the character is alphanumeric otherwise not.
Work Step by Step
isalnum is built-in method in python's string class, to determine if the string is alphanumeric or not.