You are viewing a single comment's thread. Return to all comments →
import re import sys code = sys.stdin.read() if re.search("#include<stdio.h>", code) is not None: print("C") elif re.search("import java.io", code) is not None: print("Java") else: print("Python")
Seems like cookies are disabled on this browser, please enable them to open this website
Building a Smart IDE: Programming Language Detection
You are viewing a single comment's thread. Return to all comments →