4 ms·
def concatenate[T: (str, bytes)](first: T, second: T) -> T: return first + second This isn't valid Python. items = [1, 2, 3] items *=0 bo
by sk11001 3y ago
def concatenate[T: (str, bytes)](first: T, second: T) -> T:
return first + second
This isn't valid Python.
items = [1, 2, 3]
items *=0
bowl = ['water']
drink ,= bowl
a, *_ = (1,2,3)
These are actually useful.
None of these are new btw, I don't know about why you're asking the question like it's some new development.
One great thing about Python is that you can do a lot with it but the complexity is gradually exposed to you as you become a more advanced user which makes it both powerful and easy to get into.