Skip to content

Instantly share code, notes, and snippets.

@Joelfranklin96
Created May 27, 2020 01:49
Show Gist options
  • Save Joelfranklin96/ef1cfd4c00d75bd48975e684e24707d8 to your computer and use it in GitHub Desktop.
Save Joelfranklin96/ef1cfd4c00d75bd48975e684e24707d8 to your computer and use it in GitHub Desktop.
magic methods output
# 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