I created this function definition in python:
def random_person():
mylist = ["wounded priestress", "crying girl"]
return random.choice(mylist)
Now I want to call that function in a print function in my code:
print("In the temple, you find a random_person().")
Unfortunately, it does not result in the strings I have chosen for my random function. This is what I get:
In the temple, you find a random_person().
print(f"In the temple, you find a {random_person()}.")print("In the temple, you find a "+random_person()+".")is one wayprint("In the temple, you find a", random_person(), ".")print("In the temple, you find a {}.".format(random_person()))