English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be the output of the given python program? str1 = "welcome" str2 = "to school" str3=str1[:2]+str2[len(str2)-2:] print(str3) - Computer Science

Advertisements
Advertisements

Question

What will be the output of the given python program?

str1 = "welcome"
str2 = "to school"
str3=str1[:2]+str2[len(str2)-2:]
print(str3)
Short Answer

Solution

output:

weol

shaalaa.com
Programs Using Strings
  Is there an error in this question or solution?
Chapter 8: Strings and String manipulation - Evaluation [Page 131]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 8 Strings and String manipulation
Evaluation | Q 3. | Page 131
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×