Mind map
Python
Map content
Python
Srting
- Strings can be defined as sequential collections of characters. This means that the individual characters that make up a string are in a particular order from left to right.
List
- A list is a sequential collection of Python data values, where each value is identified by an index.
- The values that make up a list are called its elements.
- EX. [10, 20, 30, 40] ["spam", "bungee", "swallow"]
Tuples
- A tuple, like a list, is a sequence of items of any type.
- The key difference between lists and tuples is that a tuple is immutable, meaning that its contents can’t be changed after the tuple is created.
- EX. julia = ("Julia", "Roberts")
- To create a tuple with a single element t = (5,) is Tuple But t = (5) is int
- t = (5,) is Tuple But t = (5) is int
Information
- Description
- Mind Map on Python, created by jigsaw pim on 18/06/2019.
- Created by
- jigsaw pim
- Views
- 0
- Rating