<human>:  Python code to get stem of filename.
<bot>:

# Enter the filename
filename = "test.txt"

# Calling the function
print((get_stem(filename)))

#Example Output
# test

#Remember to inspect code for bugs.