Hi I have a quick question regarding 'if not ..' in py.
This is a function that should take a list of strings and return a string.
I wondered what does the first line(if not strs) do? I guess it checks if the input list strs is empty or not? How does it work? Doesn't 'if not' check if it is opposite of expected value, like 'if not None'? Thank you!
def longestPrefix(strs):
# Empty list
if not strs: return ""
....