What will be the output of the following Python code?
print('ab,12'.isalnum())
True
False
None
Error
print('ab'.isalpha())
print('a B'.isalpha())
What will be the output of the following Python code snippet?
print('0xa'.isdigit())
print(''.isdigit())
print('my_string'.isidentifier())
print('__foo__'.isidentifier())
print('for'.isidentifier())
print('abc'.islower())
print('11'.isnumeric())
print('1.1'.isnumeric())
print('1@ a'.isprintable())
print(''''''.isspace())
print('\t'.isspace())
print('HelloWorld'.istitle())
print('Hello World'.istitle())
print('1Rn@'.lower())
n
1rn@
rn
r
print('xyyzxxyxyy'.lstrip('xyy'))
error
zxxyxyy
z
zxxy
print('xyxxyyzxxy'.lstrip('xyy'))
xyxxyyzxxy
xyxzxxy
none of the mentioned
print('cba'.maketrans('abc', '123'))
{97: 49, 98: 50, 99: 51}
{65: 49, 66: 50, 67: 51}
321
123