To create a tuple with a single item, you need to add a _______ after the item.

  • Colon
  • Comma
  • Period
  • Semicolon
To create a tuple with a single item, you need to add a comma after the item. For example, my_tuple = (42,). A trailing comma distinguishes a single-item tuple from an expression in parentheses.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *