Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def func(list):
  2. lists = []
  3. for item in list:
  4. print(item)
  5. lists.append([item])
  6. return lists[0], lists[1], lists[2], lists[3]
  7.  
  8. print(func([1, 4.5, True, 'word']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement