fork download
  1. def solve(*args):
  2. nums = [bin(x)[2:] for x in args]
  3. width = len(max(nums, key=len))
  4. return tuple(n.zfill(width) for n in nums)
  5.  
  6.  
  7. print(solve(1, 4))
  8. print(solve(1, 4, 555))
Success #stdin #stdout 0.02s 9120KB
stdin
Standard input is empty
stdout
('001', '100')
('0000000001', '0000000100', '1000101011')