Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # del_list.py
- def x(ii='', l=[]):
- if ii is not '':
- try:
- for i in ii:
- l.append(i)
- except:
- l.append(ii)
- else:
- del l[:]
- return l
- print x(1)
- print x(2)
- print x()
- print x(9)
- print x([99,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement