English

Consider the following string mySubject: mySubject = "Computer Science" What will be the output of the following string operation: print(mySubject[0: len(mySubject)]) - Computer Science (Python)

Advertisements
Advertisements

Question

Consider the following string mySubject:

mySubject = "Computer Science"

What will be the output of the following string operation:

print(mySubject[0: len(mySubject)])

One Line Answer
Advertisements

Solution

Computer Science

shaalaa.com
String
  Is there an error in this question or solution?
Chapter 8: Strings - Exercise [Page 187]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 8 Strings
Exercise | Q 1. i. | Page 187
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×