0
How to return each element in list in a seperate new line
Without using any pre defined functions (generators,enumerated ,etc functions not acceptable)
3 Answers
+ 2
You can use a for loop.
Or unpack the list in the print statement and set the separator
+ 2
Not optimal
+ 2
"return each element in list in a separate new line"
You probably meant to "print" them, rather than "return" them. These two refer to different concepts. "return" is only used with functions, so your idea "without using any function" makes no sense.