4. The output of the following code is
X = "Python programming is simple."
y = "Easy to learn."
print(x+y)
Answers
Answer:
Python programming is simple.Easy to learn.
[Note:- you have used Capital X in first line so it's show's a error]
The output of the following códe is Python programming is simple.Easy to learn.
The correct códe will be like this
x = "Python programming is simple."
y = "Easy to learn."
print(x+y)
Explanation
Alphabets, words, or other characters when enclosed between single quotation marks (' ') or double quotation marks (" ") are called strings.
x variable is assigned the string Python programming is simple.
y variable is assigned the string Easy to learn.
In this print statement
print(x+y)
The plus (+) sign between them is used to concatenate or join both strings.
Extra Information
Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.