String concatenation by join()Write the code for a Python function expand(x) that takes a list of strings, concatenates them, and returns the resulting string repeated three times.Input: ['string1', 'string2']Output: 'stri... |
Python String OperationsYou can return a range of characters by using the slice syntax.Specify the start index and the end index,separated by a colon,to return a part of the string.Slice From the Start.By leaving out... |