Reverse a string

Given a string such as “reverse me” print it in reverse order.

from stack import Stack


def reverse_string(stack, input_str):
    for i in range(len(input_str)):
        stack.push(input_str[i])
    rev_str = ""
    while not stack.is_empty():
        rev_str += stack.pop()

    return rev_str


if __name__ == "__main__":
    s = Stack()
    input_str = "reverse me"
    print(reverse_string(s, input_str))