Skip to content

Instantly share code, notes, and snippets.

@nickgrier07
Last active June 9, 2018 16:55
Show Gist options
  • Select an option

  • Save nickgrier07/0ba6eb148d42608737eb4ba00752f589 to your computer and use it in GitHub Desktop.

Select an option

Save nickgrier07/0ba6eb148d42608737eb4ba00752f589 to your computer and use it in GitHub Desktop.
Module experiment
class Configure(object):
def __init__(self, pointM, pointN):
self.pointM = pointM
self.pointN = pointN
self.native = True
def Points(self, M, N, n_):
try:
M = str(M)
N = str(N)
print("Point M is "+M+".")
print("Point N is "+N+".")
if n_:
print("They are both native.")
else:
print("They are both not native")
except:
print("Failed to imput arguments.")
Point M is 30.
Point N is 1.
They are both native.
Point M is 1.
Point N is 2.
They are both not native
import Conf
T = Conf.Configure(30, 1)
T.native = True
T.Points(T.pointM,T.pointN,T.native)
T.Points(1,2,False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment