diff --git a/python bug_report.py b/python bug_report.py new file mode 100644 index 000000000..e32dddd01 --- /dev/null +++ b/python bug_report.py @@ -0,0 +1,4 @@ +def add(a, b): + if not isinstance(a, (int, float)) or not isinstance(b, (int, float)): + raise TypeError("Both arguments must be numbers.") + return a + b