How to comment multiple lines in Python?

+1 vote
May 24 in Python by Wajiha
• 1,930 points

1 answer to this question.

0 votes
Comments in Python begin with a # tag. If you have 2 or more lines,  each line needs to be prefixed by a hash.  The shortcut method to do  this is just hold the ctrl key and left click in front of every line you want to comment and press # just once and it will appear on al the selected places.
answered May 24 by Nisa
• 180 points

Related Questions In Python

+3 votes
5 answers

How to read multiple data files in python

Firstly we will import pandas to read ...READ MORE

answered Apr 6, 2018 in Python by DeepCoder786
• 1,720 points
0 votes
0 answers

How to read lines from compressed text files in Python

Is it easy to read a line ...READ MORE

Dec 27, 2018 in Python by Anirudh
• 2,070 points
0 votes
0 answers

How to implement multiple try codes in a single block using Python?

Hi all, As per the title, I am ...READ MORE

Jan 14 in Python by Anirudh
• 2,070 points
+4 votes
7 answers
+2 votes
11 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 409 views
0 votes
1 answer

How to install Python on Windows and set path variable?

Install python from this link After ...READ MORE

answered May 24 in Python by anonymous
• 180 points