clairec

Untitled

Apr 10th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # global variable
  2. listy_list = ['spam', 'eggs', 'horses']
  3.  
  4. # functions for interacting with global
  5. def get_item(n):
  6.     return listy_list[n]
  7.  
  8. def set_item(n, stringy):
  9.     listy_list[n] = stringy
Add Comment
Please, Sign In to add comment