Advertisements
Advertisements
Question
Write a Python statement to perform the following tasks: (USE BUILT-IN FUNCTIONS/METHODS ONLY)
A statement to check whether the given character, ch is an alphabet or a number.
Very Short Answer
Advertisements
Solution
ch.isalnum()
The isalnum() method returns True if the character ch is either a letter (A-Z, a-z) or a digit (0-9). Otherwise, it returns False.
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Set 4
