4/18 Removing elements from lists


#1

What does return actually mean in any language??? It's said here that when we use del(n[1]) it doesnt return anything


#2

Think of 'return' just as you think of 'print'.

The only difference is that 'return' doesn't print anything to the console, instead it returns the result to the process that called it.

Example:
I have 2 scripts.
Script A tells script B to run, and return its result so that script A can use that result in its own script.


#3

thank you sicklad :smile: