मराठी

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. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

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.

अति संक्षिप्त उत्तर
Advertisements

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Set 4

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×