Skip to content

A class that will grade python functions. See the README.txt file for specifics on syntax

Notifications You must be signed in to change notification settings

ThornlessRose776/Python_Grader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python_Grader

This class will take a folder of python functions and run those functions with inputs given from the user in a text file. Will output a text file with each line containing the name of the file, and the grade it recieved. Can only grade one function at a time so won't run other functions in the file if there are other (since it uses the name of the function to run it) Inputs for the class are handled in the UI.py file. Four parameters need to be entered for the progrsm to work properly.

Path requires the file path of the folder containing the python files. Format should look like this: "C:\Users\name\directory\folder\etc..." Num_of_inputs requires the number of inputs that the function to be graded requires. This number is how it properly iterates through the next input. ins_and_outs requires the file path to the text file that contains the test inputs and outputs for the function. This is how each file is graded. The file must be formated with each line either being an input or an output. Input comes first the output, then input again, and so on. For functions with multiple inputs, it would go as follows.

input1 input2 inputn output input1 input2 inputn output etc...

func_name requires the name of the function, without the "()" at the end. For example the function in the UI.py file would be input as "grade_assigments"

About

A class that will grade python functions. See the README.txt file for specifics on syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages