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"

09 Jan 2025
Answer :
Word Count : 234

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:

  • string1 is "Good".
  • string2 is "Morning".
  • The + operator joins these two strings,
______ ______ ______ ______ ___ ___ ___ _______ _____ ___.
_______ _____ _______ ___ _____ _________.
___ _______ ____ _______ _______ _________ __________ __________ ______.
_________ _________ _______ ___ ______ ____ ______ __________.
_____ _______ _______ ___ ________ _____ ___ __________.
__________ ________ ________ _____ ______ ______ ___ ________.
________ ____ _________ _________ __________ ________ _____ ___ ____ __________.
_________ _____ _________ _____ _______ _______ ______ ____ _________ _____ _________.
________ _____ _______ _______ ____ ____ ____ _________ ______.
______ ____ __________ _________ _________ ____.
_______ ______ ____ ________ ____ ___ __________ ________ _____ __________.
________ _____ _________ ___ __________ _____ _______ _______ _______.
_______ ______ ______ __________ __________ _______ ____ ________ ____.
_____ ________ _______ __________ ______ _______ _________ _________.
_________ __________ _________ ___ _____.
____ __________ _________ ________ ____ ___ ________ ______ _________ ____ _____.
__________ _________ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MLIL 7 2024 - Show two ways to concatenate the following two strings together to get | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→