I have a D&D group that uses spreadsheets to hold character data; I want to be able to run a program from within the spreadsheet, where we can use data from specific cells as inputs, and it spits out the result into the cell it’s called in.
I’ve got the program working so this works in the command line:
See? Put in 2, 10, 3, and 4, get out 20.
So the question is, what is the simplest way to make it so that I can do something in place of “SomehowCallMyProgram” to actually call the program? Does everyone who would use my program have to set up a Python IDE? Would it be simpler for other users if I wrote the program in BASIC instead python, as it currently is? And also, what do I replace “SomehowCallMyProgram” with to actually call the program?
Code here: