English

Consider the following string mySubject: mySubject = "Computer Science" What will be the output of the following string operation: print(mySubject[:3] + mySubject[3:]) - 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[:3] + mySubject[3:])

One Line Answer

Solution

Computer Science

shaalaa.com
String Operators
  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. vii. | Page 187
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×