Advertisement
balispecial

3

Feb 22nd, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. values = ['boyle', 'charles', 'avogadro', 'einstein']
  2. length_of_values = 4
  3.  
  4. def split_in_two(x,y):
  5.       if y % 2 == 0:
  6.         print(values[2:])
  7.       else:
  8.         print('welcome')
  9. split_in_two(values, 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement