Assuming s1 = 'abc' and s2 = 'cba' are defined in main(), which function will return cbaabccba when result is passed to the print() function? result = string_it_up(s1, s2)Single choice

A

def string_it_up(x, y):   x += y + x   return(x)

B

def string_it_up(x, y):   y += x + y   return(y)

C

def string_it_up(x, y):   y += y + x   return(y)

D

def string_it_up(x, y):   x += x + y   return(x)

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!