If two continuous slashes preceeds the comment
if ( line [ 0 ] == ' / ' and line [ 1 ] == ' / ' and line [ 2 ] != ' / ' ) : NEW_LINE INDENT print ( " It ▁ is ▁ a ▁ single - line ▁ comment " ) NEW_LINE return NEW_LINE DEDENT if ( line [ len ( line ) - 2 ] == ' * ' and line [ len ( line ) - 1 ] == ' / ' and line [ 0 ] == ' / ' and line [ 1 ] == ' * ' ) : NEW_LINE INDENT print ( " It ▁ is ▁ a ▁ multi - line ▁ comment " ) NEW_LINE return NEW_LINE DEDENT print ( " It ▁ is ▁ not ▁ a ▁ comment " ) NEW_LINE