def main():
print("This progam will display a story for you")
person = input("Please give me a celebrity name ")
setting = input("Please give me your favorite place to go ")
time = input("Please give me a time of year ")
item = input("please give me the name of your favorite food ")
print("Once there was a person by the name of " + person + " who was visting the " + setting + " ." + " decide that because of quarantine it was so boring and being that it was " + time + " it was time to go eat " + item + ".")
main()
You have to indent everything inside the main function and then call the main function. The code runs find after that.