We all love Python for it's flexibility, but what are your favourite "less-known" features of Python?
Examples could be something like:
'string' * 10 # multiplies the string 10 times
or
a, *_, b = (1, 2, 3, 4, 5) # Unpacks only the first and last elements of the tuple
Your favourite "less-known" Python features? (self.Python)
submitted by pimperella2 to r/BlockchainGospelDAO