Forgive my ignorance, but could someone point to the absolute simplest way of using the GitHub Classroom tests for Python input/output in interactive programs?
I have had a look at the autograding instructions and the templates post here, but I’m hoping to do it very simply through the Classroom UI instead of running pytest etc. Is this possible?
E.g. Say I want students to write a program that asks the user for a string and prints that string with an exclamation mark at the end:
text = input("Enter: ") sentence_text = text.upper() + text[1:] + '.' print(sentence_text)
Thingo. I am happy. I am sad.
thingo! I'm happy!!
I’ve tried adding a test in the classroom interface and entering these inputs and outputs, but the test fails with
NameError: name 'thingo' is not defined, which make me think I’m doing it incorrectly.
Thanks in advance!