coderplex-org / openrank-backend

Free and Open Source Coding Challenges Platform
128 stars 73 forks source link

Python program which take Languge,codefile,testcases as input and returns whether the code passes or not #3

Closed sannithibalaji closed 4 years ago

srikanth104 commented 6 years ago

from click._compat import raw_input
import py_compile

fname = raw_input('Please enter filename...')
if (fname.__contains__(".py")):
    try:
        py_compile.compile(fname)
    except Exception as e:
        print(str(e))
else:
    fileObject = open(fname, 'r')
    print(fileObject.read())
Yogeshwar235 commented 6 years ago

Is anyone working on this?

jbuddha commented 6 years ago

https://github.com/coderplex/OpenRank/pull/24

pbteja1998 commented 4 years ago

N/A for now.