Skip to content

Commit

Permalink
Add binary form of octets
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 18, 2024
1 parent 4154a90 commit bf7f514
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions octets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

for octet in ip_addr.split("."):
print(octet)
print(bin(int(octet)))

0 comments on commit bf7f514

Please sign in to comment.