Robotics & Artificial Intelligence
The method used to check that all characters in a string are alpha numeric is …………… .
- isal()
- isalnum()
- isnum()
- isalphanum()
Python String Manipulation
3 Likes
Answer
isalnum()
Reason — The isalnum() function returns True if all the elements of the string are alphanumeric.
Answered By
2 Likes
Related Questions
What would be the output of following code …………… .
str1 = "Hello India" s1 = str1[1:3] print(s1)- He
- el
- Hlo
- None of these
What would be the output of following code?
Q1 = "Hello How are you" val = Q1.count("H") print(val)- 1
- 3
- 2
- Error
What would be the output of following code?
information = "I am studying in class X !" val = information.find("studying") print("The index is: ", val)- 5
- 6
- 7
- Error
Fill in the blanks:
- """Hello How are you?
I am good.""" is an example of ……………. . - The ……………. operator returns true if a character does not belong to a string.
- In Python ……………. is used to introduce a new line.
- The ……………. function takes an iterator as an input of argument.
- The isdigit() function returns ……………. if all the elements in the string are digits.
- """Hello How are you?