Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python Data types, How to use Python - Coggle Diagram
Python Data types
Variables
Variables are containers for storing data values
Creating variable
Casting
Get the type
Case sensitive
List
Lists are used to store multiple items in a single variable.
Operations
Sorting
Copying
Joining
Accessing
Adding
Features
Changeable
Ordered
Allow duplicate
Sequence of elements
Mutable
Arbitrary type
Indexing
Methods
Append ()
Type ()
Clear ()
Copy ()
Count ()
Extend()
index()
Insert()
Pop()
Remove ()
Numbers
integers
Float
Complex
Variables of numeric types are created when you assign a value to them
Tuples
Tuple is a collection which is ordered and unchangeable. Allows duplicate members
Methods
Clear()
Sort()
Copy()
Count()
Index ()
len()
Pop()
Move()
append ()
insert ()
Features
Ordered
Unchangeable
Allow duplicate values
Boolean
Booleans represent one of two values: True or False.
True
False
Set
Set is a collection which is unordered and unindexed. No duplicate members.
Operations
Intersection
Union
Difference
Compliment
Functions
abs((
all()
any()
ASCII()
bin()
bool()
byte array ()
bytes
Chr()
Methods
Union ()
Intersection ()
Difference()
Intersection_update()
Update ()
Symmetric_difference()
Is disjoint ()
Issubset ()
issuperset()
discord()
Dictionaries
Methods
d.clear ()
d.get(<key>[,<default>])
d.items()
d.keys()
d.valies()
d.popitem()
d.copy()
d.fromkeys()
d.Get()
d.update()
d.setdefault()
d.has_key()
How to use Python
Install chocolatey
1
2
3
Install pydot
Install
Pydot
Pip
Install Graphviz
Setup
Environment
Variables