String Concatenation
string concatenation program contains first line of input contains the string a, second line of input contains the string b, third line of input contains the string c and fourth line of input contains the string t
for example, we have input 1:- a=mari , b=to, c=zzo, and t=1321.
concatenate these in the order a+c+b+a and print the resulting string: marizzotomari as the output 1.
input 2 :- a= nano, b=of, c=rano, and t= 2131
output 2 :-ofnanoranonano
a = input()
b = input()
c = input()
d = input()
print(a + c + b + a)
Comments
Leave a comment