From the following, which function of python checks whether all characters in a string 's' are alpha numeric?

MCQ Template Auto Schema

From the following, which function of python checks whether all characters in a string 's' are alpha numeric?

A. s.allnum()
B. s.isnumal()
C. s.isalnum()
D. s.isalphanum()
Answer: C. s.isalnum()
    string.isalnum() function checks if a particular string is having a combination of only alphabets or numbers, it returns False if spaces or special symbols are included along with alphabets and/or numbers.