Fractions and exponents

I’m trying to have this answer marked as correct:
Screenshot 2023-03-08 at 4.03.10 PM

This is the cl that I have. Can anyone find my mistake? I’ve tried it with and without the second \ but neither marks it as correct.

correct = input2.submitted and input2.latex = “y=\frac{1}{3}*{3^{x}}”
correct: correct

It worked when I did this instead.
correct = input2.submitted and input2.latex = ‘y=\frac{1}{3}*{3^{x}}’

That fixed it for me, too! Thank you so much for your help! :slight_smile:

Here’s a template using the pattern library that you can use. The problem with matching latex is that the students have to enter it exactly. So that would mark y=1/3(3^x) incorrect, for example.

Awesome - Thank you! :slight_smile: