I'm a native perl but are using python a lot lately. I was wondering if there is something similar to the perl qw// operator which is a shortcut to get around typing multiple quotes and commas when creating a list of several strings that do not include spaces.
Example: @list = qw(Paul Michael Jessica Megan);
(from wikibooks
I can't really find anything but the operator's name might be very different... Cheers, Lars
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With