Created
May 27, 2020 01:49
-
-
Save Joelfranklin96/ef1cfd4c00d75bd48975e684e24707d8 to your computer and use it in GitHub Desktop.
magic methods output
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
# Defining the objects | |
guassian_one = guassian(3,7) | |
guassian_two = guassian(4,8) | |
# __add__ method | |
guassian_three = guassian_one + guassian_two | |
# Printing the mean and standard deviation | |
print(guassian_three.mean) | |
print(guassian_three.stdev) | |
# __repr__ method | |
guassian_three |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment