Looking for a bubble expert, to implement a practice code checker, like w3 or dataquest for a edu website

Hi

As stated in title, It is for a education project of mine. Where users will be given a question and asked to write the code to solve it.

I want something that takes the official solution code and checks if the submitted one is correct or not.

Now of course it isn’t as simple as an exact match check, how it will work is where I am at a loss currently. So if you think you know how exactly this can work. Please reach out to me and let’s discuss.

Thanks

Most online code checkers would run the code and check the output. Alongside possibly the time it took to run the code.

print ("Hello")
And

print "Hel"
print "lo"

Are both valid python 2.7

Exact match will fail. But they’ll both print Hello. (Well technically there is a newline in the middle)

Is there a particular reason you can’t run the code and check outputs?

Nah nah… I think you understood me wrong. It will be test questions for users to answer.

For example. Assign list x to variable b and print b.

Then they would write the code as solution.

The system would check whether it is correct or not and then respond if correct or not.