CBSE Class 11 Computer Science Question 40 of 88

Tuples and Dictionary — Question 5

Back to all questions
5
Question

Question 5

What are the differences between strings and tuples?

Answer
StringsTuples
A sequence of characters used to represent text.An ordered collection of elements that can include different data types.
Strings are defined using single quotes ' ', double quotes " ", or triple quotes ''' ''' for multi-line strings.Tuples are defined using parentheses ().