What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', -1)) a) [‘ab’, ‘ef’, ...
View Question
What will be the output of the following Python code snippet?
print(‘abcdefcdghcd’.split(‘cd’, 0))
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', 0)) a) [‘abcdefcdghcd’]
View Question
What will be the output of the following Python code snippet?
print(‘abcdefcdghcd’.split(‘cd’))
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd')) a) [‘ab’, ...
View Question
What will be the output of the following Python code snippet?
print(‘xyyxyyxyxyxxy’.replace(‘xy’, ’12’, 100))
What will be the output of the following Python code snippet? print('xyyxyyxyxyxxy'.replace('xy', '12', 100)) a) xyyxyyxyxyxxy
View Question
What will be the output of the following Python code snippet?
print(‘xyyxyyxyxyxxy’.replace(‘xy’, ’12’, 0))
What will be the output of the following Python code snippet? print('xyyxyyxyxyxxy'.replace('xy', '12', 0)) a) ...
View Question
What will be the output of the following Python code snippet?
print(‘abcefd’.replace(‘cd’, ’12’))
What will be the output of the following Python code snippet? print('abcefd'.replace('cd', '12')) a) ab1ef2
View Question
What will be the output of the following Python code snippet?
print(‘abef’.replace(‘cd’, ’12’))
What will be the output of the following Python code snippet? print('abef'.replace('cd', '12')) a) ...
View Question
What will be the output of the following Python code snippet?
print(‘abcdef12’.replace(‘cd’, ’12’))
What will be the output of the following Python code snippet? print('abcdef12'.replace('cd', '12')) a) ...
View Question
What will be the output of the following Python code snippet?
print(‘abef’.partition(‘cd’))
What will be the output of the following Python code snippet? print('abef'.partition('cd')) a) (‘abef’) b) ...
View Question
What will be the output of the following Python code snippet?
print(‘cd’.partition(‘cd’))
What will be the output of the following Python code snippet? print('cd'.partition('cd')) a) (‘cd’) b) ...
View Question