Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ip(a, b, c, d):
- l1 = []
- for temp in ['{:08b}', '{:b}', '{:o}', '{}', '{:x}']:
- l1.append('.'.join([temp.format(i) for i in [a, b, c, d]]))
- return '\n'.join(l1)
- a, b, c, d = map(int, input().split())
- print(ip(a, b, c, d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement