If I ask a student to enter a value for x, then enter the output that value elicits from my function, how would I code a variable for the student's input value.

Student screen:

Input a value for x: ____________

What output value would you get for f(**student number here**) if f(x) = x^2 - 7x + 12?

f(**student number here**) = _______________

Answer code: $x*$x - 7*$x + 12

It's the "$x" that I do not know how to code in Canvas.

Thanks

Short answer is you can’t, you need to use a formula question. Here are some guides that will help - How do I create a Formula quiz question with a single variable? & How do I create a Simple Formula quiz question?