Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
dsc-courses
GitHub Repository: dsc-courses/dsc10-2022-fa
Path: blob/main/homeworks/hw04/tests/q2_3.py
3058 views
1
test = { 'name': 'q2_3',
2
'points': None,
3
'suites': [ { 'cases': [ {'code': '>>> callable(effective_tax_rate) and np.isclose(effective_tax_rate(75_000), 15.743, 0.1)\nTrue', 'hidden': False, 'locked': False},
4
{ 'code': '>>> effective_tax_rate(-1) == 0 # Make sure you address the case where the input is less than or equal to 0. The function should evaluate to 0 in that '
5
'case.\n'
6
'True',
7
'hidden': False,
8
'locked': False}],
9
'scored': True,
10
'setup': '',
11
'teardown': '',
12
'type': 'doctest'}]}
13
14