pythonwhat icon indicating copy to clipboard operation
pythonwhat copied to clipboard

Verify Python code submissions and auto-generate meaningful feedback messages.

Results 40 pythonwhat issues
Sort by recently updated
recently updated
newest added

Since `pythonwhat v2.16.0`, different SCT functions do some assertions and verifications to figure out whether the function is appropriately used. You can see it in the CHANGELOG [here](https://github.com/datacamp/pythonwhat/blob/master/CHANGELOG.md#2160). Some of...

enhancement
tech-debt

In [ch3ex6](https://www.datacamp.com/teach/editor/1536/edit/6571140900?branch=master) of "Machine Learning for Time Series in Python", the student has to complete this line of code. ```python missing_values = prices.isna().sum() ``` The SCT to check this was...

enhancement
docs

Currently, the context variable values or environment variable values are not included in the automatically generated message, which can be confusing.

enhancement
messages

The Reference [article that covers `check_function`](https://pythonwhat.readthedocs.io/en/latest/reference.html?highlight=type#pythonwhat.check_object.check_object) is missing explanations for - `state=None` - `typestr='variable'`

docs

As you write chains of SCTs, every function 'contributes' to the feedback message that is generated in case the student made a mistake. All of these 'chunks' of feedback can...

enhancement
docs

If you look at the examples in the reference documentation of `check_function_def()`, you'll see that it's currently rather clunky to verify the signature of a function definition: - A lot...

enhancement

When checking whether an object is correctly created and the exercise only contains a single `=` operator in addition to other 'object-mutating' operations that don't use `=`, highlighting trips up....

bug

Suppose the following solution and SCT: ```python # solution round(1.1234) # sct Ex().check_function('round').check_args('number').has_equal_value() ``` Depending on how the student called the function, the feedback should be different: ```python round(2.345) #...

enhancement
messages

The following works fine: ```python # solution import numpy as np np.random.randint(1, 7) # sct Ex().check_function('numpy.random.randint') ``` The following does not: ```python # solution import numpy as np for x...

bug

`testwhat` has `override_solution()`, where you can override solution code and solution environment variables. `pythonwhat` only allows you to override solution code (with `override()`). In addition, this is not parsed with...

enhancement