-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex1_3.py
23 lines (18 loc) · 931 Bytes
/
ex1_3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
"""Create three different variables: the first variable should use all lower case characters with
underscore ( _ ) as the word separator. The second variable should use all upper case characters
with underscore as the word separator. The third variable should use numbers, letters, and
underscores, but still be a valid variable Python variable name.
Make all three variables be strings that refer to IPv6 addresses.
Use the from future technique so that any string literals in Python2 are unicode.
compare if variable1 equals variable2
compare if variable1 is not equal to variable3
"""
from __future__ import unicode_literals
ipv6_addr1 = "2001:db8:1234::1"
IPV6_ADDR2 = "2001:db8:1234::2"
ipV6_addR3 = "2001:db8:1234::3"
print("")
print("Is variable1 equal to variable2: {}".format(ipv6_addr1 == IPV6_ADDR2))
print("Is variable1 not equal to variable3: {}".format(ipv6_addr1 != ipV6_addR3))
print("")