30 seconds of python
Click on a snippet's name to view its code.
Casts the provided value as an array if it's not one.
isinstance() to check if the given value is enumerable and return it by using
list() or encapsulated in a list accordingly.