My issue
Traceback (most recent call last):
File “/mnt/sol.py”, line 7, in
X = map + int
^
TypeError: unsupported operand type(s) for +: ‘type’ and ‘type’
My code
# Update the '_' in the code below
t = int(input())
for i in range(t):
S = map(int,input().split())
#create a variable X which stores the value of string S concatenated with itself
X = map + int
#output the variable X
print(X)
Learning course: Design and Analysis of Algorithms
Problem Link: String mirror - Double strings in Design and Analysis of Algorithms