So I made multiple variables with questions to input. I figured out how to open the text file but how do I save all of my variables to my text file. It keep returning none in the text file
from distutils import text_file
kids = input("How many kids do you have?>")
food = input("Whats your favorite food?>")
tv = input("Whats your favorite sports team>")
work = input("Where do you work?>")
carmake = input("Whats the make of your car?>")
symbol = input("Pick a symbol !@#$%^&*()_+")
results = str(print(f"{kids}, {food}, {tv}, {work}, {carmake}, {symbol}".split(" ")))
file = open("passwordGenerator.txt", "w")
file.write(results)
file.close