This project is an example of writing Python extensions in C . A simple Python extension is implemented in C that can the sum of two numbers.
To compile the Python extension, execute the following command in the root of the project:
pip install .from test import test
print(test.add(1, 2)) # Prints 3
# print(test.add()) #rows a test.ArgsError exceptionor
python -m testEnter first number: 1
Enter second number: 2
The sum of 1 and 2 is: 3