Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lista = ['cat', 'dog', 'worm']
- if lista: print lista #check if list exists
- if lista[2]: print lista[2] #check if third entry exists
- if lista[8]: print 'dfsa' #check if 9th entry exists, crash
- #why.jpg and how do i circumvent this
Add Comment
Please, Sign In to add comment