Issue
Is there a method of ending single line comments in Python?
Something like
/* This is my comment */ some more code here...
Solution
No, there are no inline comments in Python.
From the documentation:
A comment starts with a hash character (
#) that is not part of a string literal, and ends at the end of the physical line. A comment signifies the end of the logical line unless the implicit line joining rules are invoked. Comments are ignored by the syntax; they are not tokens.
Answered By - user2555451 Answer Checked By - Mary Flores (PHPFixing Volunteer)
 
 Posts
Posts
 
 
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.