CBSE Class 11 Computer Science
Question 69 of 91
String Manipulation — Question 14
Back to all questions 14
Question Question 7b
Find the output if the input string is 'Test'.
S = input("Enter String :")
RS = " "
for ch in S :
RS = ch + 2 + RS
print(S + RS)Answer
The program gives an error at line RS = ch + 2 + RS. The operands to + are a mix of string and integer which is not allowed in Python.