Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def print_hello(name):
- print("Hello", name)
- def get_numbers():
- x = int(input("Enter first integer: "))
- y = int(input("Enter second integer: "))
- return x + y
- def cube(x):
- return x ** 3
- def get_hypotenuse(a, b):
- return ((a ** 2) + (b ** 2)) ** 0.5
- def find_distance(x1, y1, x2, y2):
- return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
- def find_triangle_perimeter(x1, y1, x2, y2, x3, y3):
- return (find_distance(x1, y1, x2, y2) +
- find_distance(x1, y1, x3, y3) + find_distance(x2, y2, x3, y3))
- def do_math(x, y):
- return (((3 * x ** 2) + (4 * y)) / (2 * x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement