Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 538 Bytes

File metadata and controls

22 lines (13 loc) · 538 Bytes

object Types / Data Types

  • Number : 1234, 3.1415, 3+4j, 0b111, Decimal(), Fraction()

  • String : 'spam', "Bob's", b'a\x01c',

  • List : [1,[2,'three'], 4.5], list(range(10))

  • Tuple : (1,'spam',4,'U'), tuple('spam'),namedtuple

  • Dictionary : {'food': 'spam','taste':'yum'}, dict(hours= 10)

  • Set : set('abc'), {'a', 'b', 'c' }

  • Files : open(eggs.txt), open(r'C:\ham.bin','wb')

  • Boolean : True, False

  • None : None

  • Function, modules, classes

  • Advanced: Decorators, Generators, Iterators, MetaProgramming