This is a most excellent place for technology news and articles.
How does Python know if it's my list or not?
if isinstance(mylist, list) and not mylist
Problem solved.
Or if not mylist # check if list is empty
if not mylist # check if list is empty
I think you missed the joke 😅
I thought it was funny!
How does Python know if it's my list or not?
if isinstance(mylist, list) and not mylist
Problem solved.
Or
if not mylist # check if list is empty
I think you missed the joke 😅
I thought it was funny!