Skip to content

Commit

Permalink
Fixed Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
junioralive committed Aug 6, 2024
1 parent 39c6315 commit a9fc94b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
from
from scripts import addition, division

myaddition = addition.addition(1,5)
print(myaddition)

mydivision = division.divide_numbers(10,2)
print(mydivision)
2 changes: 1 addition & 1 deletion scripts/Modulus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def modulus(a, b):
def modulus_numbers(a, b):
"""
This function takes two numbers and returns their modulus.
Expand Down
Binary file added scripts/__pycache__/addition.cpython-311.pyc
Binary file not shown.
Binary file added scripts/__pycache__/division.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/addition.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def addition(a,b):
def add_numbers(a,b):
return a+b
2 changes: 1 addition & 1 deletion scripts/floordivision.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def floor_division(number, divisor):
def floor_division_numbers(number, divisor):
if divisor == 0:
return "Divisor cannot be zero"
return number // divisor
2 changes: 1 addition & 1 deletion scripts/squareroot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import math

def find_square_root(number):
def square_root_number(number):
if number < 0:
return "Cannot compute the square root of a negative number."
return math.sqrt(number)
2 changes: 1 addition & 1 deletion scripts/subtraction.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def addition(a,b):
def subtraction_numbers(a,b):
return a+b

0 comments on commit a9fc94b

Please sign in to comment.