python Flashcards

introduction to python programming

1
Q

what are tuples

A

Tuples are ordered collection of values
Elements placed inside parenthesis separated by commas.
-Tuples are ordered sequences
-Accessed using index
-Tuples can contain any sort of object(numbers ,strings, lists and other tuples )
-Tuples are immutable: cannot add delete or change elements after tuple is defined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly