logoalt Hacker News

kazinatoryesterday at 3:56 AM1 replyview on HN

> By the way, don’t add a comma after the elements in the list, ...

Python:

  forty_two = ( 42 )

  tuple_containing_forty_two = ( 42, )

Replies

sevensoryesterday at 7:24 PM

You don’t even need parentheses here.

   42,
This expression is a tuple all by itself.
show 1 reply