JavaScript's void operator in Python?

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Feb 2 17:41:28 EST 2020


On 3/02/20 3:38 am, Stefan Ram wrote:

> void( ( print( 2 ), print( 3 )))

If the functions you're calling all return None, you can
do this:

 >>> print(2); print(3)
2
3

-- 
Greg


More information about the Python-list mailing list