Everything You Need to Know About Python - DeriveIt
Here are all the import Python language features you need to know. -- Basics These are all the built-in data structure types in Python: `` primitives x = 1 integer x = 1.2 float x = True bool x = None null x = float('inf') infinity (float) objects x = [1, 2, 3] array or "list" x = (1, 2, 3) tuple x = "hi": 2 hashmap or "dict" x = 1, 2, 3 set x = "abc123" str `` You can convert between types by wrapping them in a cast, like this: `` n = 7 str(n) '7' int('7') 7 x = [1,2,3] set(x) 1,2,3 tuple(x) (1
deriveit.org