Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions superstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,32 @@ def greet(name):
def add(a, b):
"""Function to add two numbers."""
return a + b

def subtract(a, b):
"""Function to subtract two numbers."""
return a - b

def multiply(a, b):
"""Function to multiply two numbers."""
return a * b

def divide(a, b):
"""Function to divide two numbers."""
return a / b

def power(a, b):
"""Function to raise a number to the power of another number."""
return a ** b

def modulus(a, b):
"""Function to return the remainder of a number divided by another number."""
return a % b


def floor_division(a, b):
"""Function to perform floor division of two numbers."""
return a // b

def square_root(a):
"""Function to return the square root of a number."""
return a ** 0.5