Advertisement
here2share

# list_via_split_func.py -- great habit

May 29th, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # list_via_split_func.py -- great habit
  2.  
  3. # Creating a list without typing a whole lot of commas and quotation marks
  4. example = '''blue green red purple orange brown white yellow'''.split()
  5. print example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement