corrected source code
corrected source code
import statistics
return x + y
return x - y
return x * y
if y == 0:
return None
else:
return x / y
if y == 0:
return None
else:
return x % y
def squ(x):
return x ** 2
def even_or_odd(x):
if x % 2 == 0:
else:
def cube(x):
return x ** 3
def squr_root(x):
return x ** 0.5
return math.pow(x, y)
def expo(x):
return math.exp(x)
def abso(x):
return math.fabs(x)
def sin_val(x):
return math.sin(x)
def cos_val(x):
return math.cos(x)
def tan_val(x):
return math.tan(x)
def mean(x):
return statistics.mean(x)
def mod(x):
return statistics.mode(x)
def median(x):
return statistics.median(x)
def log_val(x):
if x <= 0:
return None
else:
return math.log(x)
return x * y
def area_square():
return a ** 2
def area_circle():
radius = a / 2
def area_triangle():
return (a * b) / 2
L = []
for i in range(A):
L.append(w)
# Display options
print("1. Addition")
print("2. Subtraction")
print("3. Multiply")
print("4. Division")
print("5. Remainder")
print("27. Exit")
elif choice == 2:
elif choice == 3:
elif choice == 4:
elif choice == 5:
elif choice == 6:
elif choice == 7:
even_or_odd(n)
elif choice == 8:
elif choice == 9:
else:
print("Thank you!")