python practice

# Define a procedure, abba, that takes  two strings as its inputs, and returns a string that is the first input,  followed by two repetitions of the second input, followed by the first input.

#Example

#print abba(‘a’,’b’)
#>>> ‘abba’

#print abba(‘soft’,’pill’)
#>>> ‘softpillpillsoft’

Comments

comments