Question
Show two ways to concatenate the following two strings together to get the string "Good Morning"
i) Strings 1- "Good"
ii) Strings 2- "Morning"
Answer :
Word Count : 234
1. Using the
______ ______ ______ ______ ___ ___ ___ _______ _____ ___.
_______ _____ _______ ___ _____ _________.
___ _______ ____ _______ _______ _________ __________ __________ ______.
_________ _________ _______ ___ ______ ____ ______ __________.
_____ _______ _______ ___ ________ _____ ___ __________.
__________ ________ ________ _____ ______ ______ ___ ________.
________ ____ _________ _________ __________ ________ _____ ___ ____ __________.
_________ _____ _________ _____ _______ _______ ______ ____ _________ _____ _________.
________ _____ _______ _______ ____ ____ ____ _________ ______.
______ ____ __________ _________ _________ ____.
_______ ______ ____ ________ ____ ___ __________ ________ _____ __________.
________ _____ _________ ___ __________ _____ _______ _______ _______.
_______ ______ ______ __________ __________ _______ ____ ________ ____.
_____ ________ _______ __________ ______ _______ _________ _________.
_________ __________ _________ ___ _____.
____ __________ _________ ________ ____ ___ ________ ______ _________ ____ _____.
__________ _________ _______.
Skip in 10
There are two common ways to concatenate the strings "Good" and "Morning" in order to form the string "Good Morning":
1. Using the + Operator:
The simplest and most straightforward way to concatenate the two strings is by using the + operator. This operator takes two or more strings and combines them into a single string.
string1 = "Good" string2 = "Morning" result = string1 + " " + string2 print(result) # Output: Good Morning In this example:
string1is "Good".string2is "Morning".- The
+operator joins these two strings,
_______ _____ _______ ___ _____ _________.
___ _______ ____ _______ _______ _________ __________ __________ ______.
_________ _________ _______ ___ ______ ____ ______ __________.
_____ _______ _______ ___ ________ _____ ___ __________.
__________ ________ ________ _____ ______ ______ ___ ________.
________ ____ _________ _________ __________ ________ _____ ___ ____ __________.
_________ _____ _________ _____ _______ _______ ______ ____ _________ _____ _________.
________ _____ _______ _______ ____ ____ ____ _________ ______.
______ ____ __________ _________ _________ ____.
_______ ______ ____ ________ ____ ___ __________ ________ _____ __________.
________ _____ _________ ___ __________ _____ _______ _______ _______.
_______ ______ ______ __________ __________ _______ ____ ________ ____.
_____ ________ _______ __________ ______ _______ _________ _________.
_________ __________ _________ ___ _____.
____ __________ _________ ________ ____ ___ ________ ______ _________ ____ _____.
__________ _________ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.