What are sequence types in Python?

What is sequence
a particular order in which related events, movements,
or things follow each other.
a set of related events, movements,
or things that follow each other in a particular order.

what are 6 built-in types of sequence in python
In this Python Sequence Tutorial, we will discuss 6 types of Sequence: 
String, list, tuples, Byte sequences, byte array, and range object.


What are sequence types in Python?
There are seven sequence types: strings, Unicode strings, 
lists, tuples, bytearrays, buffers, 
and xrange objects. 
Dictionaries and sets are containers for sequential data.
See the official python documentation on sequences:

What are the sequence data types?
Sequences allow you to store multiple values
in an organized and efficient fashion. 
There are several sequence types:
strings, Unicode strings, lists, tuples, bytearrays, 
and range objects. 
Dictionaries and sets are containers for non-sequential data.

コメント

このブログの人気の投稿

シェルピンスキーの三角形

global 変数・ローカル変数