I am having a really difficult time understanding the logic of how a function and a list interact. Take these examples:
def list_function(x): return x n = [3, 5, 7] print list_function(n)
n = "Hello" def string_function(s): return s + "world" print string_function(n)
How do n list and function interact? I knew the answer but don’t how it works I just have the syntax memorized but I feel I need to really get what’s happening instead of memorizing. If someone could give a for dummies explanation of the logic so I can wrap my head around it I would be greatly indebted.