+ 1
what will happen when we are not using the keyword list in example??
in the example, list keyword is used to return as a list.
1 Answer
+ 12
def a():
b="you don't need to return a list"
return b
in the example, list keyword is used to return as a list.