Advertisements
Advertisements
प्रश्न
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
shaalaa.com
String Operators
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Strings - Exercise [पृष्ठ १८७]
APPEARS IN
संबंधित प्रश्न
Which of the following operator is used for concatenation?
Which of the following is the slicing operator?
What is stride?
The subscript of a string may be ______
What is slicing?
Explain string operators in python with suitable examples.
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:: -2])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(2*mySubject)