hi,
Please ask, I have a question, 1+2+3+...+100, some students directly print the answer 5050, which is also judged as correct by the server, what should I do?
Thank you for your help!
hi,
Please ask, I have a question, 1+2+3+...+100, some students directly print the answer 5050, which is also judged as correct by the server, what should I do?
Thank you for your help!
As a general rule you should always have at least 2 tests, one hidden from the students. So, for example, you ask students to write a function sum_series(first, last) to compute the sum of a series from a given start to a given end point. Or you get them to use an input() function to read the first and last values.
If you've already asked your question in an exam and are trying to recover, then you'll have to decide how many marks you wish to give the print(5050) answer. Then you have several options: