Created
June 9, 2018 18:20
-
-
Save nickgrier07/c4cf99addd6f9cdd97392c72e61a7bfe to your computer and use it in GitHub Desktop.
Another Module Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Stuff(object): | |
| def __init__(self, thing1, thing2, thing3): | |
| self.thing1 = thing1 | |
| self.thing2 = thing2 | |
| self.thing3 = thing3 | |
| def info(self): | |
| try: | |
| print("This is a thing:", self.thing1) | |
| print("This is also a thing:", self.thing2) | |
| print("This is another thing:", self.thing3) | |
| except: | |
| print("Oops! You didn't put in the things.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Conf as C | |
| T = C.Stuff("Me", "that", "there") | |
| T.info() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment