What will be the output of the following Python code?
print('cba'.maketrans('abc', '123'))
print('a'.maketrans('ABC', '123'))
print('abcdef'.partition('cd'))
print('abcdefcdgh'.partition('cd'))
What will be the output of the following Python code snippet?
print('cd'.partition('cd'))
print('abef'.partition('cd'))
print('abcdef12'.replace('cd', '12'))
print('abcefd'.replace('cd', '12'))
print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
print('abcdefcdghcd'.split('cd'))