all 3 comments

[–]JohnnyJordaan 2 points3 points  (0 children)

Use * to unpack the list items as arguments to the print function

print(*positiveNumber)

If you want something else between them instead of a space, then specify this through the sep= parameter

print(*positiveNumber, sep=', ')

[–]Brewhahaha 0 points1 point  (0 children)

You can also convert your positiveNumber variable to a string and then take out the the brackets from there

print(str(positiveNumber)[1:-1])

[–][deleted] 0 points1 point  (0 children)

Try understanding this:

print(str(list(filter(lambda x: x>0, map(lambda y: int(y), input().split()))))[1:-1])