What will be the output of the following Python code snippet?
print(‘1.1’.isnumeric())
a) true
b) false
c) none
d) error
Answer: b
Explanation: The character . is not a numeric character.
Related Posts
What will be the output of the following Python code snippet?
print(‘Hello World’.istitle())What will be the output of the following Python code snippet?
print(‘HelloWorld’.istitle())What will be the output of the following Python code snippet?
print(‘\t’.isspace())What will be the output of the following Python code snippet?
print(”””.isspace())What will be the output of the following Python code snippet?
print(‘1@ a’.isprintable())What will be the output of the following Python code snippet?
print(’11’.isnumeric())What will be the output of the following Python code snippet?
print(‘a@ 1,’.islower())
Join The Discussion