Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = [['a','b','c'],\
- ['d','e','f'],\
- ['g','h','i']]
- def display(x):
- for current in x:
- print current
- print
- def substitute(x):
- for row in range(0,len(x)):
- for col in range(0,len(x[row])):
- temp = x
- temp[row][col] = '*'
- display(temp)
- print 'x is equal to:'
- display(x)
- substitute(test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement