Three ways of single line and multi line comment in Python

Method 1:
One-line comments: Shift + # (enter at the top of the code and comment unselected code)
Multi-line comment: Enter Shift +# at the beginning of each line as if it were a single line
Method 2:
Single-line and multi-line: Ctr+/ (if the code you want to comment is selected)
Method 3:
Type “” or “”” “”” “”, and insert the code to be commented in the middle

Read More: