Python Comments:

Single Line Comments in Python: Python has commenting capability for the purpose of in-code documentation.Comments can be used to explain Python code.Comments are often wont to make the code more…