Skip to content

Commit

Permalink
fixed error in script due to variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimbers committed Nov 17, 2024
1 parent 0f79521 commit b0033e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
@click.command()
@click.option("--n", type=int, required=True, help="Number for which the square root should be calculated")
def main(n):
print(math.sqrt(number))
return math.sqrt(number)
print(math.sqrt(n))

if __name__ == "__main__":
main()

0 comments on commit b0033e6

Please sign in to comment.