b) What will be the output of the following Python code?
print('ab12'.isalnum())
Answers
Answered by
1
Answer:
Answer: true
Explanation: The string has only letters and digits.
Answered by
1
True
The isalnum() method returns True if all characters in the string are alphanumeric (either alphabets or numbers). If not, it returns False.
Similar questions