Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def listToString(l):
- a = oct,bin,hex
- s=''
- A=abs
- for i in 0,1,2:
- n=l[i]
- if n<0:
- s += '-'
- elif i:
- s +=' '
- s+=a[i](A(n))[2:]
- return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement