What will be the output of the following Python code snippet?
print('my_string'.isidentifier())
True
False
None
Error
print('__foo__'.isidentifier())
print('for'.isidentifier())
print('abc'.islower())
print('a@ 1,'.islower())
print('11'.isnumeric())
print('1.1'.isnumeric())
print('1@ a'.isprintable())
print(''''''.isspace())
print('\t'.isspace())
print('HelloWorld'.istitle())
print('Hello World'.istitle())
What will be the output of the following Python code?
print('Hello!2@#World'.istitle())
error
print('1Rn@'.lower())
n
1rn@
rn
r
print('xyyzxxyxyy'.lstrip('xyy'))
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
print('a'.maketrans('ABC', '123'))
{97: 49}
1
print('abcdef'.partition('cd'))
(‘ab’, ‘ef’)
(‘abef’)
(‘ab’, ‘cd’, ‘ef’)
2
print('abcdefcdgh'.partition('cd'))
(‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
(‘ab’, ‘cd’, ‘efcdgh’)
(‘abcdef’, ‘cd’, ‘gh’)