"abc" * 2 will give abc*2 as output.
1 Like
False
Reason — In Python, the * operator, when used with a string and an integer, repeats the string the specified number of times. So, "abc" * 2 means the string "abc" is repeated twice, resulting in "abcabc".
Answered By
An empty string is a string that has zero number of characters.
The last index number of string is (length-1) or -1.
Multiplication operator (*) replicates the string.
We can combine two strings with the help of '&' operator.