Python features a few primitive data types:
int: Unlimited precision, unbounded integers.1,2,10float: Familiar IEEE-754 floating point numbers.0.5,float('inf'),float('nan')complex: Complex numbers.1j,-1 + 0j,1+1j,complex('inf')bool:TrueandFalse. Considered a subtype ofintNone: A singleton to represent the absence of a valuestr: An immutable sequence of characters. Both"and'may be used, as long as they are consistent. Python makes no distinction between achrand astrlist: A mutable heterogenous list of objects:[1, 2, 3],[1, True, 'a']dict: Key-value pairs:{'a': 1, 'b': 2},{}set: Unique objects:{1, 2, 3},{False, 1, 'a'}. The empty set can only be created withset().tuple: Lists, but immutable:1, 2, 3,4,. Parentheses may be used, but are optional in certain contexts.