Check Variable Values
Simple variable value
To check a variable value you need to import the student's code and use dot notation to get the value.
Example, maybe you ask students to assign a variable named num1
the value of 5
.
Student Code:
example.py
Grading Tests:
Number of items in a list
You can do anything you need to with a student's variable value. For example, we can see if a student created a list with at least 3 items using the len()
function.
Student Code:
example.py
Grading Tests:
Last updated