I am working on an API made using Python called Cobra, and it does exactly what Python does. Here is my code:
import os
x = 1
print("Cobra Programming Language 3.3.2")
print("\n\nThe new version of Python programming, but with an all new editor!")
while x == 1:
code = input("\n\nEnter your code below:\n\n")
f = open("C:/temp-cobra-code.py", "w")
m = code
f.write(m)
f.close()
os.system("cd\\")
os.system("python temp-cobra-code.py")
print("\n\n\n**********RELAUNCHING...**********\n\n")
My problem is that I can't seem to launch the CMD on Windows to display the outcome of the user's code. Am I doing something wrong? (I am using Python 3.3.2)