Some notes
This is very uncommon. Possibly I've never seen this
# singleton tuple single = 2, print(single)
Rather add the brackets.
single = (2,)
This is incorrect and needs comma.
# tuple with strings string_tuple = ('Hello')
Simply adding brackets is meaningless there.
Make sure to add the comma:
# string a = ("Hello") # "Hello" # tuple b = ("Hello",) # ("Hello",)
Thank you for the review on the string_tuple variable. It was a typo. I'll effect the change immediately.
string_tuple
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Some notes
This is very uncommon. Possibly I've never seen this
Rather add the brackets.
This is incorrect and needs comma.
Simply adding brackets is meaningless there.
Make sure to add the comma:
Thank you for the review on the
string_tuple
variable. It was a typo. I'll effect the change immediately.