Advertisement
sigmachto

Untitled

Oct 11th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def ip(a, b, c, d):
  2.     l1 = []
  3.     for temp in ['{:08b}', '{:b}', '{:o}', '{}', '{:x}']:
  4.         l1.append('.'.join([temp.format(i) for i in [a, b, c, d]]))
  5.     return '\n'.join(l1)
  6.  
  7.  
  8. a, b, c, d = map(int, input().split())
  9. print(ip(a, b, c, d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement