How to open and run a python file using JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to open and run a python file using JavaScript?

I recently made a python file that shuts down a PC when ran, to get back at people in my compsci class who don’t do their fucking work and beg me to email them my files. The reason it’s in a python file even though we're using Java is for the purposes of keeping the code hidden. I’ve read some Stack Overflow guides to opening python files in Java but they seem pretty damn complicated. Can somebody run it down for me?

9th Feb 2018, 7:56 PM
RadioRabbit
RadioRabbit - avatar
1 Answer
0
I can’t really help you with it but a would advise you to keep the profanity at a minimum because sololearn extremely hates profanity. Not trying to be mean, just letting you know.
9th Feb 2018, 9:37 PM
Jax
Jax - avatar