Building a Smart IDE: Programming Language Detection Discussions | Regex | HackerRank

Building a Smart IDE: Programming Language Detection

  • + 0 comments
    import sys
    m=sys.stdin.read()
    if "#include" in m:
        print("C")
    elif "java" in m:
        print("Java")
    else:
        print("Python")