Computer Science

What is the difference between "book" and ('book',)?

Python Tuples

2 Likes

Answer

The difference between "book" and ('book',) is that "book" is a string, representing a sequence of characters, while ('book',) is a tuple with a single element.

Answered By

1 Like


Related Questions