Skip to content

Commit

Permalink
Fix the if/elif/else statement so it works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm committed Oct 2, 2023
1 parent 7b2e93b commit 1355d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problem_bank_helpers/problem_bank_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def roundp(*args,**kwargs):
num_str = str(float(a[0]))

# Create default sigfigs if necessary
if kw.get('sigfigs',None):
if kw.get('sigfigs',None) != None:
z = kw['sigfigs']
elif kw.get('decimals', None):
elif kw.get('decimals', None) != None:
z = kw['decimals']
else:
z = 3 # Default sig figs
Expand Down

0 comments on commit 1355d4f

Please sign in to comment.