Advertisement
here2share

# list_from_nested_string.py

Jan 29th, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # list_from_nested_string.py
  2. import re
  3. z=99
  4. x='''[['xyz',500,z],[123 ,"B","C!!!","You And I Are Awesome!","$D$ "]]'''
  5. x=eval(x)
  6. print x
  7. print x[1][3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement