Skip to content

Commit adb31a0

Browse files
committed
Add datatype.md to document object types and data types in Python
1 parent 8c7fc52 commit adb31a0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

01_basics/datatype.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Object Types / Data Types
2+
3+
- Number : 1234, 3.1415, 3+4j, 0b111, Decimal(), Fraction()
4+
- String : 'spam', "Bob's", b'a\x01c', u'sp\xc4m'
5+
- List : [1, [2, 'three'], 4.5], list(range(10))
6+
- Tuple : (1, 'spam', 4, 'U'), tuple('spam'), namedtuple
7+
- Dictionary : {'food': 'spam', 'taste': 'yum'}, dict(hours=10)
8+
9+
- Set : set('abc'), {'a', 'b', 'c'}
10+
11+
- File : open('eggs.txt'), open(r'C:\ham.bin', 'wb')
12+
13+
- Boolean : True, False
14+
- None : None
15+
- Funtions, modules, classes
16+
17+
- Advance: Decorators, Generators, Iterators, MetaProgramming

0 commit comments

Comments
 (0)