Computer Science, asked by mkatoch342, 3 months ago

what will be the output of expression :print ("50"+"70")? ​

Answers

Answered by Equestriadash
9

The output will be:

5070

Explanation:

  • When two strings are separated by the addition operator, the resultant output will be those two strings joined into one.

Confusions arise in these cases as the characters in the strings are numbers, and it may be the first instinct of a mind to add the two numbers when they see them separated by the addition operator.

Here's another example:

>>> print("Hello" + "World")

This statement will give this output:

HelloWorld

As you can see, when the addition operator is used between two strings, it forms one whole string by combining the two strings.


Equestriadash: Thanks for the Brainliest! ^_^"
Answered by divyaabhishek37
0

Answer:

5070

Explanation:

For example:

print("Good"+ "Day")

GoodDay

Similar questions