-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy patheasyPythonpi.py
More file actions
24 lines (17 loc) · 880 Bytes
/
Copy patheasyPythonpi.py
File metadata and controls
24 lines (17 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
""" A python module that helps you to calculate some of the most used calculations.....
usage--
Just download the file from git and unzip in ur system.
And while using this module, just write as code-
'from easypythonpi import *' and u r good to go...
~Happy programming"""
# Programmer defined exceptions go here:
# define exception for invalid Binary Strings
class InvalidBinaryException(Exception):
pass
class InvalidNumberFibException(Exception):
def __init__(self, n, message="n is not valid, must be greater than or equal to 1"):
self.n = n
self.message = message
class InvalidMeasurementShapeException(Exception):
def __init__(self, message="invalid measurement, must be greater than or equal to 0"):
self.message = message