Creating Evaluation.py files on exercises of Python Basics
Budget: $250 – $750 USD
I'm looking for a skilled programmer to help me create evaluation.py files on exercises of Python Basics. I'm looking for someone with an intermediate level of coding skill to provide the best service. Specifically, the programmer should be knowledgeable in the Python programming language, as the entire project will require using it.
More precisely, knowledge of the following is required (all in Python):
- Basic syntax
- Operators
- Functions
- Conditionals
- Iterations (both for- and while- loops)
- sequences (lists, tuples, dictionaries)
- importing modules
- working with unittest/TestCase
- creating classes
Here's an example of an exercise on Python strings (which works successfully, although we may not be checking for the variable creation m at this stage. Apparently, the task becomes more complex/complicated when it comes to exercises about) [you can find the relevant exercise-2023-04.py and Class-2023-04.ipynb files attached to the task)]:
Exercise Text:
Assign the value of 100 to the variable "m".
With the help of the variable "m", write one line of code where the output after execution would be 100 days.
Hint: You could provide four answers to this question!
Exercise Solution:
m=100
print(str(m), 'days')
Evaluation file of the Exercise (tested; working):
import sys
from unittest import TestCase
class Evaluate(TestCase):
def test_hello_world(self):
import exercise.py # Imports and runs student's solution
output = sys.stdout.getvalue() # Returns output since this function started
self.assertEqual("Hello World\n", output, "You must print Hello World")
Then, we have exercises on Python operators, conditionals, functions, sequences, and iterations (and combinations of these). In total, the exercises ("small" or "more challenging") amount to around 70.
To create the respective evaluation files, we believe you'll need to reload modules, call functions, use unittest, check values of created variables, and mock built-in functions.
If you believe you have the necessary skills (and desired and time!) to complete this project, I'd love to hear from you.
Thank you very much.
Kind regards,
Martin
More precisely, knowledge of the following is required (all in Python):
- Basic syntax
- Operators
- Functions
- Conditionals
- Iterations (both for- and while- loops)
- sequences (lists, tuples, dictionaries)
- importing modules
- working with unittest/TestCase
- creating classes
Here's an example of an exercise on Python strings (which works successfully, although we may not be checking for the variable creation m at this stage. Apparently, the task becomes more complex/complicated when it comes to exercises about) [you can find the relevant exercise-2023-04.py and Class-2023-04.ipynb files attached to the task)]:
Exercise Text:
Assign the value of 100 to the variable "m".
With the help of the variable "m", write one line of code where the output after execution would be 100 days.
Hint: You could provide four answers to this question!
Exercise Solution:
m=100
print(str(m), 'days')
Evaluation file of the Exercise (tested; working):
import sys
from unittest import TestCase
class Evaluate(TestCase):
def test_hello_world(self):
import exercise.py # Imports and runs student's solution
output = sys.stdout.getvalue() # Returns output since this function started
self.assertEqual("Hello World\n", output, "You must print Hello World")
Then, we have exercises on Python operators, conditionals, functions, sequences, and iterations (and combinations of these). In total, the exercises ("small" or "more challenging") amount to around 70.
To create the respective evaluation files, we believe you'll need to reload modules, call functions, use unittest, check values of created variables, and mock built-in functions.
If you believe you have the necessary skills (and desired and time!) to complete this project, I'd love to hear from you.
Thank you very much.
Kind regards,
Martin