11What is the output of the following code?print('Python'.find('th'), 'Python'.find('z'))A2 -1B2 NoneC2 0D3 -1View AnswerDiscussWorkspaceReportSaveEasy
12What is the output of the following code?print('a-b-c'.rsplit('-', 1))AErrorB['a-b', 'c']C['a', 'b-c']D['a', 'b', 'c']View AnswerDiscussWorkspaceReportSaveMedium
13What is the output of the following code?print('ab' * 3)AErrorBabababCab3Dab ab abView AnswerDiscussWorkspaceReportSaveEasy
14What is the output of the following code?name, age = 'Asha', 21 print(f'{name} is {age + 1} next year')AAsha is 21 next yearB{name} is {age + 1} next yearCAsha is 22 next yearDAsha is age + 1 next yearView AnswerDiscussWorkspaceReportSaveEasy
15What is the output of the following code?s = 'Python' print(s[0], s[-1], s[1:4])AP n ythBP o ythCy n ythDP n ythoView AnswerDiscussWorkspaceReportSaveEasy