# ================================================================== # From YouTube video: # 10 Python Tips and Tricks For Writing Better Code #=================================================================== # unpacking a,b = (1,2) print(a) print(b) # unpack but usethe first value (a) and not the second (_) a, _ = (3,4) print(a) # unpack different number of values and variables # a, b, c = (1,2) << error # a, b, c = (1,2,3,4,5) << error a, b, *c = (1,2,3,4,5) print(a) print(b) print(c)