human
save a variable to file.
assistant
Here is a Python program to save a variable to file

import os

def _save_to_file(file, variable):
    """Save a variable to a file.

    """
    with open(file, 'w') as f:
        f.write(str(variable))

# Enter the file name
file ="purple skateboard"

# Enter the variable
variable ="red airplane"

# Calling the function
print((_save_to_file(file, variable)))

#Example Output
# None

#Remember to inspect code for bugs.