In the following lines of code, the print function seems to ignore the parameter hint I created earlier and want to refer to now. Can someone give me a hint on why?
print("Ah I see, you're stuck. \n"
"Have a hint.\n"
"The first three letters are", hint, ".")
hint being a parameter (unsure whether that is the correct name of that) I defined as following: hint = word[0:3], with word being a tuple. Is that maybe the mistake, that I need to refer hint in a tuple like referring manner? Edit: I tried to refer to as "The first three letters are %s." % (hint) as suggested in the linked article and it still does not work.
The output stays
Ah I see, you're stuck. Have a hint. The first three letters are .
I tried many ways, I found on here in this article (article on printing referred parameters, tuples and such.)
Sorry for this simple question, I am just starting out and unfortunately I already mess up this easy stuff.