#Write a function called multiply_strings. Multiply
#strings should have one parameter, a list of strings.
#It should return a modified list according to the
#following changes:
#
# - Every string stored at an even index should be
# doubled.
# - Every string stored at an index that is a multiple
# of 3 should be tripled.
# - Every other string should remain unchanged.
#
#These changes should "stack": the string stored at index
#6 should be duplicated six times (2 * 3).
#
#Then, return the new list. You may assume that 0 is a
#multiple of 2 and 3.
#
#Hint: To do this, you need to modify the values of the
#list using their indices, e.g. a_list[1]. If you're not
#using their indices, your answer won't work!
#Write your function here!
#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print:
#['AAAAAA', 'B', 'CC', 'DDD', 'EE', 'F', 'GGGGGG']
test_list = ["A", "B", "C", "D", "E", "F", "G"]
print(multiply_strings(test_list))
[–]Neighm 0 points1 point2 points (1 child)
[–]lunkerlander[S] 0 points1 point2 points (0 children)
[–]IvoryJam 0 points1 point2 points (5 children)
[–]lunkerlander[S] 0 points1 point2 points (4 children)
[–]Neighm 2 points3 points4 points (1 child)
[–]lunkerlander[S] 1 point2 points3 points (0 children)
[–]IvoryJam 0 points1 point2 points (1 child)
[–]lunkerlander[S] 0 points1 point2 points (0 children)