17/18 help needed


#1

just starm = [1, 2, 3]
n = [4, 5, 6]

Add your code here!

print join_lists(m, n)

this is what I have got so far

You want this to print [1, 2, 3, 4, 5, 6]ted and don't get a thing plz help u know u want to and if u don't u don't have to even though I'm realy stuck.


#2

The instructions:

  1. On line 4, define a function called join_lists that has two arguments, x and y. They will both be lists.
 def join_lists(x,y):
  1. Inside that function, return the result of concatenating x and y together.

    return x+y

Thus you will have

def join_lists(x,y):
    return x+y

You have defined a join_lists function
which has 2 parameters x and y
These parameter's are used as variable's within the function.
The function will return a concatenation of x+y
with NO-display.

Now as you call the join_list function
join_lists()
and the join_lists function was defined as having 2 parameter's
you will have to provide 2 argument's
in our case the variable's m and n both representing a list-Value
like in
print join_lists(m,n)

some quotes from the outer-world:

**argument is the value/variable/reference being passed in,
parameter is the receiving variable used within the function/block**

OR

**"parameters" are called "formal parameters",
while "arguments" are called "actual parameters".**