English

Select the correct output of the code: a = "Year 2022 at All the best" a = a.split('2') b = a[0] + ". " + a[1] + ". " + a[3] print (b) - Computer Science (Python)

Advertisements
Advertisements

Question

Select the correct output of the code:

a = "Year 2022 at All the best"
a = a.split('2')
b = a[0] + ". " + a[1] + ". " + a[3]
print (b)

Options

  • Year . 0. at All the best

  • Year 0. at All the best

  • Year . 022. at All the best

  • Year . 0. at all the best

MCQ
Advertisements

Solution

Year . 0. at All the best

shaalaa.com
  Is there an error in this question or solution?
2022-2023 (March) Sample
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×