New to programming and need help!

Can anyone drop an easily editable script for checking coordinate points that I could edit and play around with?

I am trying to create an activity where students will input the solution to a system of linear inequations, but I want it to be self checking. Hoping to learn and get better at this, so if anyone can help it would be greatly appreciated!

Thank you in advance!

Below is what I have so far for the system of:
y = -x+3
y = 4x -2
The solution (and what i want students to type is) is: “(1, 2)”

Current Code:
problem = systems1
answer = “(left(1,2right)”
studentAnswer = systems1.explainContent

content: when studentAnswer = answer “Your answer of: ${studentAnswer} is CORRECT!”
otherwise “Your answer is incorrect, please try again”

The otherwise statement is not changing, and it will not display that the correct answer has been typed in!

Here’s an example you can use. Let me know if you have questions.

Thank you very much for your help!

It was easy to comprehend your code, and I hope that with practice, it will become easier for me to produce too.

1 Like

Don’t worry, it will! Have you looked at the CL documentation? It is linked at the right inside every CL window. There are lots of code examples that show how to do specific, common tasks. It’s a great place to start.

1 Like