what will be the output of the following python statement? >>>"a"+"bc"
Answers
Answered by
6
Answer:
abc
Explanation:
In Python both of them are strings
When you use + between 2 Strings you basically are concatenating those
Thus "a" + "bc" becomes "abc" in Python
Hope this helped
Have a Good Day or night!
Answered by
1
The output of the following python statement >>>"a"+"bc" is abc.
Explanation:
- The + operator in Python can be used to join two strings together. String concatenation is the process of joining two strings together. Concatenation of strings can be accomplished in a variety of ways.
- The + operator makes string concatenation easily. This operator can be used to combine two or more strings. The arguments, however, must be a string.
- As a result, in Python, "a"+"bc" equals abc.
Similar questions