KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Why does adding a trailing comma after an expression create a tuple with the expression's value? E.g. in this code: >>> abc = 'mystring', >>> print(abc) ('mystring',) Why is the printed output ('mystring',) , and not just mystring ?
Tags (comma-separated)
Save Edits
Cancel