|
|
Created by Aparna Dhirde
almost 6 years ago
|
|
| Question | Answer |
| Tuples | An ordered sequence of elements of different data types |
| Tuple is Immutable | Means that the elements of a tuple cannot be changed after it has been created |
| Tuple Operations | Concatenation, Repetition, Repetition, Slicing |
| Built in Functions | functions whose functionality is pre-defined |
| tuple () | Creates a tuple if a sequence is passed as argument |
| index () | Returns the index of the first occurrence of the element in the given tuple. |
| Nested Tuples | A tuple inside another tuple |
| Dictionary | Dictionary is an unordered collection of items where each item consist of a key and a value. |
| Dictionary is mutable | Means can modify its contents but Key must be unique and immutable |
Want to create your own Flashcards for free with GoConqr? Learn more.