Guest User

Untitled

a guest
Apr 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. lista = ['cat', 'dog', 'worm']
  2.  
  3. if lista: print lista #check if list exists
  4. if lista[2]: print lista[2] #check if third entry exists
  5. if lista[8]: print 'dfsa' #check if 9th entry exists, crash
  6.  
  7. #why.jpg and how do i circumvent this
Add Comment
Please, Sign In to add comment