← pynet

exercises

e5eb1c22498eac7268fa53b6378774c0d85d1d0f · ovidiucs · Sep 9, 2015 12:12

−29 · 2 files changed

  • exercise_1.py +0 −15
  • exercise_3.py +0 −14
diff --git a/exercise_1.py b/exercise_1.py
deleted file mode 100644
index 1c1646a..0000000
--- a/exercise_1.py
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env python2
-'''
-1. Use the split method to divide the following IPv6 address into groups of 4
-hex digits (i.e. split on the ":")
-
-FE80:0000:0000:0000:0101:A3EF:EE1E:1719
-'''
-
-ipv6_address = 'FE80:0000:0000:0000:0101:A3EF:EE1E:1719'
-ipv6_address_section = ipv6_address.split(":")
-
-print '\n' +'IPv6 sections below'+ '\n'
-print ipv6_address_section,'\n'  
-
-print "Joined" +'\n\n'+  ":".join(ipv6_address_section) 
diff --git a/exercise_3.py b/exercise_3.py
deleted file mode 100755
index 8a977a8..0000000
--- a/exercise_3.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env python2
-
-'''
-Here is an example using this script where I echo an IP address into it and then
-the IP address is split into its octets.
-
-$ echo '192.168.1.1'  | ./test3.py 
-['192', '168', '1', '1\n']
-'''
-
-import fileinput
-
-for line in fileinput.input():
-        print line.rstrip().split('.')