I want to print a list in this way:
mylist = [1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9]
[print(n) for n in mylist]
the reason to do it because I want to view all items in a vertical way, like the way to print things in for loop.
I used to do it alot with pycharm, no problem with it.
but when it comes to google colab.
it prints me something extra:
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
[None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None]
how can I avoid, or remove those list of None in google colab.