Welcome to the Treehouse Community
Looking to learn something new?
Hussein Amr2,461 Points
it works in workspaces
What's wrong with the code
def multiply(*args): for arg in args: return arg multiply(4 * 6)
Ismail KOÇ1,748 Points
assign in this mutiply func a number for ex:
i = 1 #this argument of lists multiply with i
and after for loop end i will be multiply of all arguments.
for arg in args: #4 spaces return arg #8 spaces
seems like return in for loop (because python has space sensitive), therefore move return 4 spaces backward. (delete 4 spaces)
for arg in args: i *= arg
i will be return multiply of list arguments to each other , so return has to be:
multiply(4 * 6)
you do not need to add this in your program in this challenge.